PDA

View Full Version : Unable to display VerticalPanel if added to CENTER of BorderLayout



Kutu
24 Jun 2008, 12:43 PM
Please check this pastebin: http://www.extpaste.com/#1072

Here's what I did:
1) Grab TreePage.java example
2) Set the LayoutContainer to BorderLayout
3) Add VerticalPanel to CENTER

gslender
26 Jun 2008, 12:31 PM
What layout is on the VerticalPanel? Try changing to a RowLayout for the VerticalPanel.

darrellmeyer
26 Jun 2008, 1:41 PM
Any container using a BorderLayout needs to have a fixed size to function properly. Either give the layout container a size, or use a viewport.

Kutu
7 Jul 2008, 8:02 AM
Any container using a BorderLayout needs to have a fixed size to function properly. Either give the layout container a size, or use a viewport.

So the container cannot spread as wide as the Center?