This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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