aspose file tools*
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
Author

Wrapping components in a FlowLayout

Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
Hi,
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.
D.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrapping components in a FlowLayout