It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes SYSTEM mouse events? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SYSTEM mouse events?" Watch "SYSTEM mouse events?" New topic

SYSTEM mouse events?

Panda Mima

Joined: Aug 04, 2006
Posts: 14
I have a GUI Java applet, which I want to be a desktop application also. Is there any way to handle mouse events ALL OVER THE SCREEN, but not only within your applet/Java window?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

No - not in pure Java. You would have to use native code and JNI.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: SYSTEM mouse events?
It's not a secret anymore!