java.awt.FlowLayout (JDK 1.0)
This class implements the LayoutManager interface to lay out Component objects in a Container. FlowLayout arranges components in a container like words on a page: from left to right and top to bottom. It fits as many components as it can in a row before moving on to the next row. The constructor allows you to specify one of three constants as an alignment value for the rows, and also allows you to specify horizontal spacing between components and vertical spacing between rows.
Note that applications should never call the LayoutManager methods of this class directly; the Container for which the FlowLayout is registered does this.
public classFlowLayoutextends Object implements LayoutManager, Serializable { //Public ConstructorspublicFlowLayout(); publicFlowLayout(intalign); publicFlowLayout(intalign, inthgap, intvgap); //Constantspublic static final intCENTER; public static final intLEFT; public static final intRIGHT; //Public Instance Methodspublic voidaddLayoutComponent(Stringname, Componentcomp); //From LayoutManager1.1 public intgetAlignment(); 1.1 public intgetHgap(); 1.1 public intgetVgap(); public voidlayoutContainer(Containertarget); //From LayoutManagerpublic DimensionminimumLayoutSize(Containertarget); //From LayoutManagerpublic DimensionpreferredLayoutSize(Containertarget); //From LayoutManagerpublic voidremoveLayoutComponent(Componentcomp); //From LayoutManager1.1 public voidsetAlignment(intalign); 1.1 public voidsetHgap(inthgap); 1.1 public voidsetVgap(intvgap); public StringtoString(); //Overrides Object}