sizing two panels in a frame
Hi,
i would like to set the size of two panels which are next to each other in a frame.
The left one should be about 5 times wider than the one on the right.
splitPane.setPreferredSize(new Dimension(1000,500));
This one is not working.
Thx:
james
[323 byte] By [
javahelpsa] at [2007-11-26 18:55:04]

# 2
SplitPane is my right panel in the frame, this should be 5x wider than the right panel, whick contains 1-2 buttons.
So it is nothing to do with Splitpane, the problem is that 1 add the splitpane and the buttonPanel to mainPanel, and these 2 panels are which are added are the same wide!
Thx
james
# 3
> SplitPane is my right panel in the frame, this should
> be 5x wider than the right panel,
It should be 5x wider than itself?
> So it is nothing to do with Splitpane, the problem is
> that 1 add the splitpane and the buttonPanel to
> mainPanel, and these 2 panels are which are added are
> the same wide!
You should have posted a Short,Self Contained, Compilable and Executable, Example Program.