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 GridBagConstraints.
Valid values are GridBagConstraints.
WEST, and GridBagConstraints. Adds the specified component with the specified name to the layout. Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. Lays out the container in the specified panel. Removes the specified component from the layout.