FlowLayoutNameFlowLayout
DescriptionThe FlowLayout LayoutManager provides the means to lay out components in a row by row fashion. As each row fills up, the components continue on the next row. Class Definition
public class java.awt.FlowLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable {
// Constants
public static final int CENTER;
public static final int LEFT;
public static final int RIGHT;
// Constructors
public FlowLayout();
public FlowLayout (int alignment);
public FlowLayout (int alignment, int hgap, int vgap);
// Instance Methods
public void addLayoutComponent (String name, Component component);
public int getAlignment();
ConstantsCENTERpublic static final int CENTERThe default alignment for a FlowLayout object; rows of components are centered within the container. LEFTpublic static final int LEFTAn alignment for a FlowLayout object; rows of components start on the left side of the container. RIGHTpublic static final int RIGHTAn alignment for a FlowLayout object; rows of components start on the right side of the container. ConstructorsFlowLayoutpublic FlowLayout()
public FlowLayout (int alignment)
public FlowLayout (int alignment, int hgap, int vgap)
Instance MethodsaddLayoutComponentpublic void addLayoutComponent (String name, Component component)
getAlignmentpublic int getAlignment()
|
|