Click to See Complete Forum and Search --> : Need to change mouse coordinates


Andrew R.
August 9th, 2005, 03:27 PM
Is it possible to artificially change the position of the mouse pointer (cursor) inside of my dialog/panel/label?

I don't see anything in the MouseListener and MouseMotionListener. :(

Bnt
August 10th, 2005, 06:46 AM
Hi,

Have a look at class java.awt.Robot. It can be used to achieve what you want.

Byron

Andrew R.
August 10th, 2005, 10:50 AM
Thanks a lot! Too bad I need it for 1.1 version.

Bnt
August 10th, 2005, 10:57 AM
Sorry, that's the only way I know. Can't you upgrade your JDK/JRE?

Otherwise, maybe someone else knows another way.

Byron