Solved

Moving the mouse cursor programmatically

Posted on 2001-07-27
1
1,068 Views
Last Modified: 2007-12-19
How can I move the mouse cursor *programmatically* in Java?
(NOTE: diakov has already answered this question for me. Please, don't answer me again. The question has been posted just so that diakov could claim the points he deserves.)
0
Comment
Question by:Biss
1 Comment
 
LVL 8

Accepted Solution

by:
diakov earned 100 total points
ID: 6326047
Ok, for the record,

in JDK 1.3 there is the Robot class that saves you time in faking mosue movements and key strokes. What it essentially does (and we had to do by our selves for the lesser JDK versions) is packaging of appropriate AWT event and pushing them into the system queue.

Possible use:

Marcro recording. Keystroke recording and replaying.
User activity history for statistical stuff. Positioning mouse pointer on suggestive choices when more than one available, etc.

Cheers,
   Nik
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing list of object to Oracle Database Procedure 3 59
groupSumClump challenge 9 98
simple java question 3 44
eclipse argument 14 53
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now