BoxLayout

BoxLayout contains multiple components arranged either vertically or horizontally, but not both. Components in BoxLayout do not wrap to a second row or column, even when the container is resized or, during development, when more components are added.

Use BoxLayout's general properties to specify whether the components are placed on the horizontal or vertical axis.

Components managed by BoxLayout are arranged from left to right or top to bottom in the order they are added to the container. You must reorder the components in their container to change their position.

See also
Reordering Components Within a Container
Setting the Layout Manager
Setting Layout Properties

Legal Notices