| Article: |
Playing Movies in a Java 3D World, Part 2: | |
| Subject: | Java 3D and Swing | |
| Date: | 2005-06-09 11:36:55 | |
| From: | Droid | |
|
Great Article Andrew. I'm wondering (I'm a little confused on this matter) if one can create Java 3D scenes, similar to your checkerboard scene in a Swing container such as a JPanel. Or does Java 3D lean more toward using AWT? Does your book offer detail on Swing with Java 3D (if it is indeed possible)?
|
||
Showing messages 1 through 1 of 1.
-
Java 3D and Swing
2005-06-15 18:32:55 Andrew Davison |
[View]



Java 3D's top-level drawing panel,
Canvas3D, is a heavyweight component, so you have to be a little bit careful how you integrate it with Swing, but it's doable. In fact, all my examples put theCanvas3Dobject inside aJPanel.The
Loader3Dexample in Chapter 16 uses a more complicated Swing interface alongsideCanvas3D.- Andrew