Java Notes

Empty space: Borders and Gaps

Add borders and gaps for a more attractive layout

The following dialog has a crowded, unpleasant look.

Adding a border around the content pane and gaps between the components gives it a much nicer appearance.

When to use outer borders

How to set a window border