Hi,
I am attaching a KeyListener to my Canvas3D. Then I try to request the
focus for the Canvas3D afterwards.
This is the code:
canvas3D.addKeyListener(this);
canvas3D.requestFocus();
System.out.println("hallo"+canvas3D.hasFocus());
The System.out.println prints "false" for the focus of the Canvas3D, why?
The KeyListener works fine from that moment, when I move my mouse over the
Canvas3D. Can I give the Canvas3D the focus without the mouse being over
it?
Thanks for your help in advance
Desiree
oooooooooooooooooooooooooooooooooooooooooooooooo
Desiree Hilbring
Institut fuer Photogrammetrie und Fernerkundung
Universitaet Karlsruhe, Germany
email: [EMAIL PROTECTED]
# 0721 6083676
oooooooooooooooooooooooooooooooooooooooooooooooo
===========================================================================
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".