The box layout manager places components either vertically or horizontally. The components will not wrap as in FlowLayout.
This layout manager is used rarely. Take a look at the BoxLayout API documentation for more details about it.
BoxLayout is part of the standard Java distribution. The API documentation is available here.
Layout manager properties¶
A container with this layout manager has following layout manager properties:
|axis||The axis to lay out components along. Possible values: X_AXIS, Y_AXIS, LINE_AXIS and PAGE_AXIS.|