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.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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.
Improving the world one idiot at a time!
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.