BoxLayout arranges components either on top of each other or in a row.

  DOWNLOAD Free

BoxLayout arranges components either on top of each other or in a row. As the box layout arranges components, it takes the components' alignments and minimum, preferred, and maximum sizes into account.

The same concepts apply to left-to-right or right-to-left layout. You simply substitute X for Y, height for width, and so on. When a BoxLayout lays out components from top to bottom, it tries to size each component at the component's preferred height. If the vertical space of the layout does not match the sum of the preferred heights, then BoxLayout tries to resize the components to fill the space. The components either grow or shrink to fill the space, with BoxLayout honoring the minimum and maximum sizes of each of the components. Any extra space appears at the bottom of the container.

  DOWNLOAD Free
Specifications
Developer:
Oracle
License type:
Freeware
Related stories