Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global KeyListener (Mouse Leaves Applet)

Status
Not open for further replies.

Watts

Programmer
Jan 18, 2001
80
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top