Hi,

I was also having the same problem and i solved also.

The Solution is you have to set the maximum and minimum size of the
rightside panel in the JSplitpane ( ie the panel which is containing
Canvas3D) to Zero.
ie
getRightPanel(). setMaximumSize(new Dimension(0,0));
getRightPanel().setMinimumSize(new Dimension(0,0));

The problem is once you moved the JSplitPane Seperater the MinimumSize of
the Panel which contains Canvas3D will automatically set to the CurrentSize.
So you cant Minimize the size of the panel Again.

Try this and Let me know whether the problem is solved or not.


----- Original Message -----
Sent: Sunday, April 22, 2001 7:01 PM
Subject: [JAVA3D] JSplitPane and Canvas3D

Hello everybody:
 
    I'm trying to work with a Canvas3D inside a JSplitPane of Swing.
 
    The Canvas3D is located in the right panel of the JSplitPane inside of JPanel with 'BorderLayout'  layout.
 
    When I start the application and move the JSpliPane separator bar to the sides I only can move it to the opposite site of the Canvas3D, and when the move is done (the mouse is dragged off) I can't go back to the Canvas3D's side, so I only can move it to the left and once I've moved it I've lost the weight I did it.
 
    I supose this is because of Canvas3D component is heavier than Swing JSplitPane component. But I don´t know how to solve it. Has anyone found this problem before? Any ideas?
 
    At the same time, I'm working with an InternalWindow look&feel GUI, the window that contains the JpslitPane with the Canvas3D sometimes goes before other windows in the GUI, this time too, because of Canavas3D component is heavier tna Swing ones, I still see the Canvas3D in the screen.
 
    Has anyone found any solution?
 
Thanks for advance.
 
Aitor Illarramendi Amilibia
 
Ingeniero de software
Detección, Mando y Control
 Indra.bmp
 
Carretera de Loeches, 9
28850 - Torrejón de Ardoz, Madrid (ESPAÑA)
Tel: +34-91-396.82.47
Fax: +34-91-396.81.14
 

Reply via email to