Constructors
| Name | Description |
|---|---|
| GridLayout() | Creates a grid layout with a default of one column per component, in a single row. |
| GridLayout(int, int) | Creates a grid layout with the specified number of rows and columns. |
| GridLayout(int, int, int, int) | Creates a grid layout with the specified number of rows and columns. |
Methods
| Name | Description |
|---|---|
| addLayoutComponent(String, Component) | Adds the specified component with the specified name to the layout. |
| getColumns() | Gets the number of columns in this layout. |
| getHgap() | Gets the horizontal gap between components. |
| getRows() | Gets the number of rows in this layout. |
| getVgap() | Gets the vertical gap between components. |
| layoutContainer(Container) | Lays out the specified container using this layout. |
| minimumLayoutSize(Container) | Determines the minimum size of the container argument using this grid layout. |
| preferredLayoutSize(Container) | Determines the preferred size of the container argument using this grid layout. |
| removeLayoutComponent(Component) | Removes the specified component from the layout. |
| setColumns(int) | Sets the number of columns in this layout to the specified value. |
| setHgap(int) | Sets the horizontal gap between components to the specified value. |
| setRows(int) | Sets the number of rows in this layout to the specified value. |
| setVgap(int) | Sets the vertical gap between components to the specified value. |
| toString() | Returns the string representation of this grid layout's values. |