FlowLayout Manager
public FlowLayoutExample () {
setTitle("FlowLayout Example");
setLayout(new FlowLayout(FlowLayout.LEFT));
add(new Button("One"));
add(new Button("Two"));
add(new Button("Three"));
add(new Button("Four"));
setSize(150, 100);
setVisible(true);
}
Previous slide
Next slide
Back to first slide
View graphic version