I'm not familiar with Canvas3D, but I would suspect layout management.
The JApplet content pane has a BorderLayout by default, which will stretch
its center child to the bounds of the applet. JPanel has a FlowLayout by
default, which does not.
Try
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
panel.add(canvas3D);
Anton Kast
I have boiled it down to the following small change between what works
and what doesn't. If, in my init() code, I add the Canvas directly to
the content pane of the applet, by this code:
getContentPane().add(canvas3D);
then I see the Java3D content. If I change that to the following:
JPanel panel = new JPanel();
panel.add(canvas3D);
getContentPane().add(panel);
then nothing of the Java3D content appears.
Chris Henrich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden