FlowTest.java ************* FlowTest.java Five buttons arranged by FlowLayout By default, FlowLayout arranges components in rows, left to right, and centered. /././././././././././././ import java.applet.Applet; import java.awt.*; /** FlowLayout puts components in rows. * ************************************ public class FlowTest extends Applet { public void init() { for(int i=1; i<6; i++) { add(new Button("Button " + i)); } } }
Five buttons arranged by FlowLayout
Permanent link to this article: http://bangla.sitestree.com/five-buttons-arranged-by-flowlayout/