Hey,

Christopher Currie wrote:

>     Dear Róbert,
>
>     Thanks for responding.
>     I looked at your application, and it looks like your Canvas3D component is
> adjacent to (i.e., above) your splitPane component.  What I want to do is the
> following:

The Canvas3D is wrapped in 3 layers of Swing components,

first we have a JPanel called viewer that we put the Canvas3D in
     add("Center",canvas);

Then we add the viewer JPanel to the JSplitPane with
     setTopComponent(viewer);

And finally the JSplitPane is wrapped in a JFrame or JInternalFrame and
then displayed.

>     worldScrollPane = new JScrollPane(new Canvas3D(null));
>     mapScrollPane = new JScrollPane(new Canvas3D(null));
>
>     //Create a split pane with the two scroll panes in it
>         splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
>         splitPane.setLeftComponent(worldScrollPane);
>         splitPane.setRightComponent(mapScrollPane);
>         splitPane.setOneTouchExpandable(true);
>
>    The heavy j3D components clobbers the light swing component.

There are Swing components that are not at all compatible with J3D,
like the ScrollPane's and popup-menus. I don't see any solution to
your problem, but you could try something along the lines of what
is in the FAQ.

Happy XMAS all ;9

Róbert Viđar Bjarnason
[EMAIL PROTECTED]


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

Reply via email to