Box Layout
The Box Layout is part of the Swing API. It lets multiple components be arranged either vertically (along the Y axis) or horizontally (on the X axis). Components do not wrap - even when the container is resized. By default they are arranged from left to right or top to bottom in the order they are added to the container. See Reordering components within the same container for changing the order of the elements. Box Layout is similar to Grid Layout, except that it is one-dimensional (that is, there can be multiple components on one axis but not both).
Contents | Prev | Next | Index |