wood burning stoves 2.0*
The moose likes Applets and the fly likes Process key in applet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Process key in applet." Watch "Process key in applet." New topic
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: 484

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.


PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Process key in applet.
 
Similar Threads
quick qu?
Javascript applet communication
WA #2 ..... word association
Help with two buttons on applet
Using KeyListener in an applet