Narrow Test

This page shows the effect of the JGoodies narrow button property, how to save screen white space, and how different layout managers handle narrow buttons.

For an introduction, see the launcher settings.

The page consists of three subpanels that use different layout managers.

BoxLayout

BoxLayout does not modify button widths, and so, shows the raw widths.

JGoodies FormLayout

The FormLayout is used to equalize the width of the first four buttons and doesn't modify the width of the last button. This leads to a good layout compromise, and it complies with native style guides.

GridLayout

The GridLayout equalizes all button widths. Hence, one button with a long label (plus margins) makes all buttons very wide.