How can we show a moving mouse-cursor on any container screen, without moving the mouse device manually and then also track the cursor movement so that when the cursor hits a certain component on the screen an action occurs?

Davanum Srinivas

Use java.awt.Robot available from JDK1.3 onwards. There is a good article at JDC Tech Tips - July 11, 2000 that shows how to use java.awt.Robot. The documentation can be found at http://java.sun.com/j2se/1.3/docs/api/java/awt/Robot.html.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact