Wow--it worked!
Robert Bjarnason wrote:
> 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/
--
Christopher Currie | EMAIL: [EMAIL PROTECTED]
http://kahuna.psych.uiuc.edu/~ccurrie/homePage.html
|
Laboratory for Computational Astrophysics (LCA)
at the NCSA and Beckman Institute at the University of Illinois
INTERNET INTERFACE TO NUMERICALY SIMULATED GALAXY CLUSTERS:
http://sca.ncsa.uiuc.edu/
and
Imaging Systems Laboratory INTERACTIVE 3-D FOREST ENVIRONMENT:
http://imlab9.landarch.uiuc.edu/smartforest/
----
�����������������������
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/