Example usage for Java java.awt GridLayout fields, constructors, methods, implement or subclass
The text is from its open source code.
GridLayout(int rows, int cols) Creates a grid layout with the specified number of rows and columns. | |
GridLayout(int rows, int cols, int hgap, int vgap) Creates a grid layout with the specified number of rows and columns. | |
GridLayout() Creates a grid layout with a default of one column per component, in a single row. |
int | getColumns() Gets the number of columns in this layout. |
int | getHgap() Gets the horizontal gap between components. |
int | getRows() Gets the number of rows in this layout. |
int | getVgap() Gets the vertical gap between components. |
void | layoutContainer(Container parent) Lays out the specified container using this layout. |
Dimension | minimumLayoutSize(Container parent) Determines the minimum size of the container argument using this grid layout. |
Dimension | preferredLayoutSize(Container parent) Determines the preferred size of the container argument using this grid layout. |
void | removeLayoutComponent(Component comp) Removes the specified component from the layout. |
void | setColumns(int cols) Sets the number of columns in this layout to the specified value. |
void | setHgap(int hgap) Sets the horizontal gap between components to the specified value. |
void | setRows(int rows) Sets the number of rows in this layout to the specified value. |
void | setVgap(int vgap) Sets the vertical gap between components to the specified value. |
String | toString() Returns the string representation of this grid layout's values. |