> From: "Arvi Chahal" <[EMAIL PROTECTED]>
> 
> I'm trying to place a canvas3D in a JPanel........is this possible, i seem
> to be having problems.

I've had good results putting a Canvas3D into a JFrame.  I just add the canvas 
to the frame:

        frame.getContentPane().setLayout(new BorderLayout());
        ...
        frame.getContentPane().add(canvas, BorderLayout.CENTER);
        ...
        frame.getContentPane().add(guiPanel, BorderLayout.EAST);
        
This puts the Swing GUI in a panel to the right of the graphics.  This seems to 
avoid the LightWeight/HeavyWeight problems.


Doug Gehringer
Sun Microsystems

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to