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(); public int getHgap(); public int getVgap(); public void layoutContainer (Container target); public Dimension minimumLayoutSize (Container target); public Dimension preferredLayoutSize (Container target); public void removeLayoutComponent (Component component); public void setAlignment (int align); public void setHgap (int hgap); public void setVgap (int vgap); public String toString(); } 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()
getHgappublic int getHgap()
getVgappublic int getVgap()
layoutContainerpublic void layoutContainer (Container target)
minimumLayoutSizepublic Dimension minimumLayoutSize (Container target)
preferredLayoutSizepublic Dimension preferredLayoutSize (Container target)
removeLayoutComponentpublic void removeLayoutComponent (Component component)
setAlignmentpublic void setAlignment(int align)
setHgappublic void setHgap(int hgap)
setVgappublic void setVgap(int vgap)
toStringpublic String toString()
See AlsoComponent, Container, Dimension, LayoutManager, Object, Serializable, String |
|