Is there a class which sees if you are clicking right now? I don't mean mouse events, but some sort of event which sees if you click somewhere on the screen.
Thanks.
Printable View
Is there a class which sees if you are clicking right now? I don't mean mouse events, but some sort of event which sees if you click somewhere on the screen.
Thanks.
errrr that's exactly what the MouseEvent class is for. Can you explain what you are trying to do, not how you are trying to solve it.
Do you mean listening to all mouse events regardless of where's being clicked?
In pure Java, no.
Pure Java applications can only listen to mouse events registered with one of their components.
Yes that's exactly what I mean. I don't mean on any Component but anywhere, anytime on the screen.
I'm making a programm which records your mouse movements and clicks. I currently have the mouse movement recording, but since there is no Class or some mouse event, and I am unexperienced with JNI, this project kinda drops dead.
You may consider taking a look at this:
http://www.javaprogrammingforums.com...ui-editor.html
It's Windows-specific, but it does basically what you want to do.