GridLayoutNameGridLayout
DescriptionThe GridLayout LayoutManager provides the means to layout components in a grid of rows and columns. Class Definition
public class java.awt.GridLayout extends java.lang.Object implements java.awt.LayoutManager, java.io.Serializable { // Constructors public GridLayout(); public GridLayout (int rows, int cols); public GridLayout (int rows, int cols, int hgap, int vgap); // Instance Methods public void addLayoutComponent (String name, Component component); public int getColumns(); public int getHgap(); public int getRows(); public int getVgap(); public void layoutContainer (Container target); public Dimension minimumLayoutSize (Container target); public Dimension preferredLayoutSize (Container target); public void removeLayoutComponent (Component component); public int setColumns(int cols); public int setHgap(int hgap); public int setRows(int rows); public int setVgap(int vgap); public String toString(); } ConstructorsGridLayoutpublic GridLayout()
public GridLayout (int rows, int cols)
public GridLayout (int rows, int cols, int hgap, int vgap)
Instance MethodsaddLayoutComponentpublic void addLayoutComponent (String name, Component component)
getColumnspublic int getColumns()
getHgappublic int getHgap()
getRowspublic int getRows()
getVgappublic int getVgap()
layoutContainerpublic void layoutContainer (Container target)
minimumLayoutSizepublic Dimension minimumLayoutSize (Container target)
preferredLayoutSizepublic Dimension preferredLayoutSize (Container target)
removeLayoutComponentpublic void removeLayoutComponent (Component component)
setColumnspublic void setColumns(int cols)
setHgappublic void setHgap(int hgap)
setRowspublic void setRows(int rows)
setVgappublic void setVgap(int vgap)
toStringpublic String toString()
See AlsoComponent, Container, Dimension, LayoutManager, Object, String |
|