import java.awt.*;
import java.applet.*;
public class lademo extends Applet
{
Button b1;
TextField t1;
public void init()
{
setLayout(null);
t1 = new TextField(10);
b1 = new Button("Hello");
add(b1);
add(t1);
b1.setBounds(100,200,100,50); // coloumn, row, width, height
t1.setBounds(100,400,100,50);
}
};
Technorati Tags : JAVA, Default Layout
No comments:
Post a Comment