Christopher Henrich <email@hidden> wrote:
>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.
It may or may not be relevant, but a default JPanel has a FlowLayout, while
a default content-pane has a BorderLayout, as I recall.
What happens if you put the Canvas3D at the CENTER position in a JPanel
with a BorderLayout?
-- GG
_______________________________________________
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
This email sent to email@hidden