Listen to mouse events outside a java window
1 posts in topic
Flat View  Flat View

Posted By:   Sandeep_gs
Posted On:   Tuesday, June 3, 2003 01:44 PM

I am trying to listen to mouse events anywhere on the screen

Is there a way I could listen to mouse events...
- outside of a java window (on the desktop for e.g.)
- anywhere on the screen after the window has been deactivated (minimized)?

... other than writing a native method call.

Re: Listen to mouse events outside a java window

Posted By:   Stephen_McConnell  
Posted On:   Wednesday, June 4, 2003 05:24 AM

My FAVORITE class. java.awt.Toolkit has the ability to add event listeners for the entire system. You can create a mouse event listener and use that.

Hope this helps.

Stephen McConnell

About | Sitemap | Contact