import java.awt.*;
public class FlowLayoutTest {
public static void main (String []args){
Frame f= new Frame();
f.setTitle("FlowLayoutTest");
f.setSize(200,200);
f.setLayout(new FlowLayout());
Button b1= new Button ("Boton 1");
f.add(b1);
Button b2= new Button ("Boton 2");
f.add(b2);
Button b3= new Button ("Boton 3");
f.add(b3);
f.setVisible(true);
}
}
No hay comentarios:
Publicar un comentario