File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Wrapping components in a FlowLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Wrapping components in a FlowLayout" Watch "Wrapping components in a FlowLayout" New topic

Wrapping components in a FlowLayout

Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
I have this problem now. I have a JPanel in the SOUTH of a border layout. This panel has components in a FlowLayout. When the panel's width is changed and the number of rows in the FlowLayout changes, I want the panel's height to change appropriately so all the rows are displayed.
Anyone know how to do this, or to achieve a similar affect with a different combination of LayoutManagers ? I figure there should be a reasonably easy way.
wood burning stoves
subject: Wrapping components in a FlowLayout
It's not a secret anymore!