GridBagLayout public class GridBagLayout extends Object implements LayoutManager GridBagLayout is a flexible layout manager that aligns components vertically and horizontally, without requiring that the components be the same size. Each component managed by a GridBagLayout is associated with a GridBagConstraints instance that specifies how the component is laid out within its display area. How a GridBagLayout places a set of components depends on each component's GridBagConstraints and minimum size, as well as the preferred size of the components' container. The default value is 1.
Valid values are GridBagConstraint.
Valid values are GridBagConstraints. WEST, and GridBagConstraints. Print the layout information. Adds the specified component with the specified name to the layout. Lays out the container in the specified panel.