I want to intercept both a KeyPressed and and KeyReleased event for my entire Applet. The problem is I don't really want to add a KeyListener to every single object in the applet just to do this. Is there any way to intercept these events for the system?
Secondly, is there any way to detect when a user leaves the Applet area with his mouse? I need to detect this because I only want to process the above mentioned KeyEvents when the mouse pointer is located inside the Applet itself.
Secondly, is there any way to detect when a user leaves the Applet area with his mouse? I need to detect this because I only want to process the above mentioned KeyEvents when the mouse pointer is located inside the Applet itself.