package interfaces;
import java.awt.*;
public class NullLayoutManagerTest {
/**
* @param args
*/
public static void main(String[] args) {
Frame f=new Frame();
f.setTitle("NullLayout Manager TEst");
f.setSize(300, 150);
f.setLayout(null);
Button b1=new Button("Boton 1");
b1.setBounds(50, 25, 100, 50);
f.add(b1);
java.awt.Button b2=new Button("Boton 2");
b2.setBounds(125, 85,100, 50);
f.add(b2);
f.setVisible(true);
}
}
No hay comentarios:
Publicar un comentario