import java.awt.*;
import java.applet.*;
/**
<appletcode=grid.class width=500 height=500>
</applet>
*/
public class grid extends Applet
{
Button b1,b2,b3,b4;
String result;
public void init()
{
b1=new Button(“one”);
b2=new Button(“two”);
b3=new Button(“three”);
b4=new Button(“four”);
setlayout(new gridLayout(2,2,10,10));
add(b1);
add(b2);
add(b3);
add(b4);
}
}
No comments:
Post a Comment