Fields
| Name | Description |
|---|---|
| columnWeights | |
| columnWidths | |
| comptable | |
| defaultConstraints | |
| layoutInfo | |
| MAXGRIDSIZE | The maximum number of grid positions (both horizontally and vertically) that can be laid out by the grid bag layout. |
| MINSIZE | The smallest grid that can be laid out by the grid bag layout. |
| PREFERREDSIZE | |
| rowHeights | |
| rowWeights |
Constructors
| Name | Description |
|---|---|
| GridBagLayout() | Creates a grid bag layout manager. |
Methods
| Name | Description |
|---|---|
| addLayoutComponent(Component, Object) | Adds the specified component to the layout, using the specified constraint object. |
| addLayoutComponent(String, Component) | Adds the specified component with the specified name to the layout. |
| AdjustForGravity(GridBagConstraints, Rectangle) | |
| ArrangeGrid(Container) | |
| getConstraints(Component) | Gets the constraints for the specified component. |
| getLayoutAlignmentX(Container) | Returns the alignment along the x axis. |
| getLayoutAlignmentY(Container) | Returns the alignment along the y axis. |
| getLayoutDimensions() | Determines column widths and row heights for the layout grid. |
| GetLayoutInfo(Container, int) | Print the layout constraints. |
| getLayoutOrigin() | Determines the origin of the layout grid. |
| getLayoutWeights() | Determines the weights of the layout grid's columns and rows. |
| GetMinSize(Container, GridBagLayoutInfo) | |
| invalidateLayout(Container) | Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
| layoutContainer(Container) | Lays out the specified container using this grid bag layout. |
| location(int, int) | Determines which cell in the layout grid contains the point specified by (x, y). |
| lookupConstraints(Component) | Retrieves the constraints for the specified component. |
| maximumLayoutSize(Container) | Returns the maximum dimensions for this layout given the components in the specified target container. |
| minimumLayoutSize(Container) | Determines the minimum size of the target container using this grid bag layout. |
| preferredLayoutSize(Container) | Determines the preferred size of the target container using this grid bag layout. |
| removeLayoutComponent(Component) | Removes the specified component from this layout. |
| setConstraints(Component, GridBagConstraints) | Sets the constraints for the specified component in this layout. |
| toString() | Returns a string representation of this grid bag layout's values. |