Layout Managers

A Layout manager controls how components are postitioned on the screen; when an component is added, it is placed according to the algorithm used by the layout manager.

Basic Layouts:

None of these are particularly beautiful. There are others (you can look at the online documentation and the tutorial).

The proper way to use layouts is one inside another, using panels, like the BetterGUI example

Resources

Laying Out Components Within a Container - The Java Tutorials