GridLayout Grid.java import java.awt. The most powerful layout manager is the GridBagLayout . It is very useful when you have an elaborate interface with lots of components. It uses the GridBagConstraints objects to specify the layout. Although it uses a grid like the Grid layout, it works more like an html Table .
Components can span across cells, for example.
The GridBagLayout is tricky for complicated layouts and will require lots of tuning to get it just the way you want. From Exploring Java. It's recommended that you use it once to learn about it. Then switch to a graphical interface builder , e.g. JBuilder or Visual Cafe, to do things faster and with less aggravation. See Exploring Java, 2nd ed.