Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capture all application InputEvents



Thank you Scott & Illya - this was exactly what I was looking for!

jeff


On Mar 28, 2006, at 4:06 PM, Scott Kovatch wrote:


On Mar 28, 2006, at 4:57 PM, Jeff Martin wrote:

Does anyone have know of an easy way to get notification of all application InputEvents other than a custom EventQueue or registering Mouse/Key listeners on all windows?

We've been using a custom event queue for some time, but it's a little messy when using our stuff as an applet or plugin, because other people like to have custom event queue's, too, I guess. Adding listeners to absolutely every app listener is a little tedious too.

Check out java.awt.event.AWTEventListener and Toolkit.addAWTEventListener(). I often use these to make sure we're sending key or input method events correctly to a component. You can also specify the kinds of events you are interested in, so you don't get a blizzard of paint events when you want to track mouse clicks, for example.


Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Ellis <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Scott Palmer <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Hall <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael McDougall <email@hidden>)
 >Re: BufferedImages not garbage collected -- any suggestions? (From: Michael Hall <email@hidden>)
 >Capture all application InputEvents (From: Jeff Martin <email@hidden>)
 >Re: Capture all application InputEvents (From: Scott Kovatch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.