Does anyone know why of the 4 component listener methods only
componentResized() gets called for a Canvas3D?  componentHidden(...),
componentMoved(...), and componentShown(...) never get executed.

I'm trying to move the mouse cursor on the screen over a given virtual world
object once the canvas3D gets shown on the screen.  I tried waiting for
componentShown(...) to get called after the frame containing it is shown,
but that method doesn't get called.  So I used componentResized(...), which
gets called as soon as the Canvas3D is shown.  Unfortunately I need to use
the canvas's vWorldToImagePlate transform, and this transform is not yet set
properly in the Canvas3D when componentResized(...) is called.  (The
transform is actually set to the identity matrix and is not yet set to the
proper vWorldToImagePlate transform.)

So what I'm currently doing is running a thread that waits in a loop until
the Canvas3D's vWorldToImagePlate transform is initialized and then moving
the cursor where I want it.  I'd really rather set up a listener to get
notified when the Canvas3D has all its transforms set and ready to be used.
I guess then really I have two questions: 1) Why is componentResized(...)
the only component listener method that gets called for Canvas3D?  2) Is
there a way to get notified when the Canvas3D is fully initialized (i.e. has
its transforms set properly)?

Thanks for any help,
Peter

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to