| Author |
Process key in applet.
|
vladislav peichev
Greenhorn
Joined: Apr 28, 2011
Posts: 22
|
|
|
I have an applet containing a JPanel. In Firefox sometimes if the applet is active but the JPanel and the applet itself do not get key events e.g. Esc key pressed. Is there a way to ensure that the applet gets the key? Thanks in advance.
|
 |
Nam Ha Minh
Ranch Hand
Joined: Oct 31, 2011
Posts: 110
|
|
vladislav peichev wrote:I have an applet containing a JPanel. In Firefox sometimes if the applet is active but the JPanel and the applet itself do not get key events e.g. Esc key pressed. Is there a way to ensure that the applet gets the key? Thanks in advance.
I think the applet consumes the events and does not dispatch them to its children. So try to catch the events from the JPanel instead.
|
My Blog - Java SE Quick Downloads
|
 |
 |
|
|
subject: Process key in applet.
|
|
|