swing layout: vertical flow

Posted by pstanton on Stack Overflow See other posts from Stack Overflow or by pstanton
Published on 2010-12-20T23:48:30Z Indexed on 2010/12/21 5:00 UTC
Read the original article Hit count: 206

Filed under:

Hi All,

What LayoutManager should I use to achieve a transposed version of FlowLayout?

Essentially, I want a vertical list which occupies multiple columns if it can't fit all of it's components within one column.

+------------------------+
| item 1                 |
| item 2                 |
| item 3                 |
| item 4                 |
| item 5                 |
| item 6                 |
| item 7                 |
| item 8                 |
+------------------------+

or

+------------------------+
| item 1  item 7         |
| item 2  item 8         |
| item 3                 |
| item 4                 |
| item 5                 |
| item 6                 |
+------------------------+

© Stack Overflow or respective owner

Related posts about java