Any Layout Similar to HTML Tables'?

Is there any layout which would adapt each column and row to its contents so, for example, a panel might end up like this: _| | ||__|_||__|_|but the several cells would never be misaligned?
[231 byte] By [Jesdisciplea] at [2007-11-27 6:45:56]
# 1
GridBagLayout.
bsampieria at 2007-7-12 18:18:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
Okay, I'm trying to implement that, but see no way to specify where a row/column ends and another starts. Any help with that would be greatly appreciated.
Jesdisciplea at 2007-7-12 18:18:15 > top of Java-index,Desktop,Core GUI APIs...
# 3
using GridBagConstraints objects, you define the gridx and gridy of each, and the gridwidth for colspan or gridheight for rowspan.
bsampieria at 2007-7-12 18:18:15 > top of Java-index,Desktop,Core GUI APIs...
# 4
Never mind. I found a link to http://www.netbeans.org/kb/55/quickstart-gui.html on the GridBagLayout tutorial page and, as I'm already using NetBeans, I'll use that feature rather than hand-coding the mess. Thanks!
Jesdisciplea at 2007-7-12 18:18:15 > top of Java-index,Desktop,Core GUI APIs...