> Paul Skidmore wrote:

> Do I actually want to do anything in my actionPerformed method in the
> frame class ?. Would the solution be to write behaviours in the
> FaceScene class (which constructs the scenegraph initially) which wake
> up on the AWT event ID that signifies a particular menu choice ?. The
> behaviour would then be able to modify the geometry, appearance etc of
> my shape3D nodes. How would I go about doing this ?

As I understand it, the wakeup event stuff won't work with components
other than just the J3D canvas. That is, because you aren't registering
an actionlistener with the canvas when you set the wake criteria, there
is no way to connect the menu items with the j3d behaviour system. The
AWT event stuff only works with events that are directly passed to the
Canvas3D - mouse and keyboard. 

To do this, you are going to have to keep references to the appropriate
parts of the scene graph within the application code and then modify on
demand. As usual, don't forget to set the right capability bits.

-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     [EMAIL PROTECTED]
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to