Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapping components in a container

 
MSD
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic