PDA

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


Kutu
06-24-2008, 03: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
06-26-2008, 03:31 PM
What layout is on the VerticalPanel? Try changing to a RowLayout for the VerticalPanel.

darrellmeyer
06-26-2008, 04: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
07-07-2008, 11: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?