File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Wrapping components in a container
 
Similar Threads
in flow lay out how can i force to add component on next line?
BoxLayout alignment issue
Placing a component at center both vertically and horizontally
component size
TextArea components