GridLayout columns problem

Is it possible to add an empty column to a row using GridLayout?

I am trying to have some rows with two columns and some with 1 column.

JFrame frame =new JFrame("Test message");

frame.addWindowListener(new BasicWindowMonitor());

Container c = frame.getContentPane();

c.setLayout(new GridLayout(0,2));

c.add(new JLabel("Please select the appropriate method of contact "));

c.add();// This line does not work

c.add(phone);

c.add(email);

.

.

c.add(submit, BorderLayout.SOUTH);

frame.pack();

frame.setVisible(true);

I guess I am trying to reproduce an html table where I can have

some empty colums by just placing an empty <td></td>

Is there something similar I can do?

Thank you.

[1081 byte] By [jlavigne1] at [2007-9-26 3:11:24]
# 1
see Box.createGlue()
Titie at 2007-6-29 11:18:49 > top of Java-index,Archived Forums,Swing...
# 2
Thanks, but I looked at your answer too late.I found GridBagLayout and it works great. I will look at the Box stuff next.
jlavigne1 at 2007-6-29 11:18:49 > top of Java-index,Archived Forums,Swing...