How to do program with a grid-like layout.
There are several Geometry managers to use for the layout of a GUI:
...
Here are some nice, short programs already in the wiki, that show ways to do such a layout: