Hi,

Thanks for the reply. However, the JFrame contains a lot many components other than the Canvas3D and these need to be serviced.
I was able to fix this by calling the JFrame's requestFocus method in the Canvas3D's implementation classes whenever the mouse click was on the Canvas3D.

Raghav

John Wright wrote:
[EMAIL PROTECTED]">
Raghav,

I would suggest you attach your key listener to the Canvas 3D NOT the
JFrame. From what you describe when you click on the Canvas3D it then
has keyboard focus and without something listening to it you'll get no
keyboard response. In our code we do a lot of fussing to make lots of
components unable to get the focus and to put listeners on the
components that we do want to allow to have focus.

- John Wright
Starfire Research

Raghavendra R wrote:
Hi,

I am resending this mail regarding keyboard inputs.

I have an application with a Canvas3D on a JFrame rendering CAD
drawings. I have attached KeyListener to this JFrame. I recently
upgraded from JDK 1.2.2 / J3D 1.1.3 to JDK 1.3.1_04 / J3D 1.2.1_04.
After doing this, i am unable to get keyboard inputs whenever i click on
the Canvas3D. Is this a problem with the focus getting grabbed or
something by the Canvas3D or something to do with the JDK 1.3.1 Swing?

Thanks in advance
Raghav

===========================================================================
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 t he message "help".

===========================================================================
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