Due to a bug in the the 1.0 release of Java, GridBagLayout doesn't allow components to span multiple rows unless the component is in the leftmost column. Valid values are GridBagConstraints. The default value is zero. The value is specified as an Insets object. By default, each component has no external padding.
Valid values are GridBagConstraints.
EAST , GridBagConstraints. WEST , and GridBagConstraints. Unless you specify at least one nonzero value for weightx or weighty , all the components clump together in the center of their container. Generally weights are specified with 0.0 and 1.0 as the extremes, with numbers in between used as necessary. Larger numbers indicate that the component's row or column should get more space.