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