Example usage for Java java.awt GridBagLayout fields, constructors, methods, implement or subclass
The text is from its open source code.
GridBagLayout() Creates a grid bag layout manager. |
void | addLayoutComponent(String name, Component comp) Has no effect, since this layout manager does not use a per-component string. |
void | addLayoutComponent(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraints object. |
GridBagConstraints | getConstraints(Component comp) Gets the constraints for the specified component. |
int[][] | getLayoutDimensions() Determines column widths and row heights for the layout grid. |
Point | getLayoutOrigin() Determines the origin of the layout area, in the graphics coordinate space of the target container. |
double[][] | getLayoutWeights() Determines the weights of the layout grid's columns and rows. |
void | layoutContainer(Container parent) Lays out the specified container using this grid bag layout. |
Dimension | maximumLayoutSize(Container target) Returns the maximum dimensions for this layout given the components in the specified target container. |
void | setConstraints(Component comp, GridBagConstraints constraints) Sets the constraints for the specified component in this layout. |