GridBagLayout example
public class TestGridBagLayout extends Frame {
public static void main(String[] args) {
TestGridBagLayout tgbl = new TestGridBagLayout();
tgbl.setLayout(new GridBagLayout());
// constraints specified here
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.insets = new Insets(10,10,10,10);