Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Wrapping components in a container 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 container" Watch "Wrapping components in a container" New topic
Author

Wrapping components in a container

MSD
Greenhorn

Joined: Jan 22, 2000
Posts: 20
I have a container (applet or frame) that contains a main panel in it. I set the layout of the main panel to BorderLayout and add another panel to the SOUTH and a component/panel to the CENTER. The bottom panel has FlowLayout and I add several labels to it. When i display this, only some lables are displayed. What I want to so is to be able to wrap the labels in the bottom pane. Also, can I resize the top container so the preferredSize of the two panels ?
The code :

All help thoroughly appreciated.
Thanx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrapping components in a container