aspose file tools*
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
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: 498

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.