Sharon Lin wrote: >I try to catch the key stroke in my application which consist from >JFrame and Canvas3D. >I add a KeyListener to the JFrame but I didnt get notify on any key stroke >although the KeyNavigatorBehavior works fine.
Normally it's just a problem of focus. I add the KeyListener to the Canvas3D itself and - very important - call m3DEngine.getCanvas().requestFocus(); (where getCanvas() delivers the Canvas3D of course). Hope this helps, - J -- Joerg Plewe http://www.hardcode.de =========================================================================== 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".