The Java Robot class allows one to move the mouse as if the actual physical mouse was moved.
However, how does one move the mouse from Point1 to Point2 in a humane (and thus not instant) manner? Aka, how does one set the speed of movement?
If no such speed is possible with the Robot class, thus if the mouse can only be moved instantenously, what kind of "algorithm" should be used to mimic a human's mouse movement? Should it move the mouse pixel by pixel with a certain incrementing speed?
The Robot class has a delay(...) method that you can use to control movement from point to point. Try a few different alogorithms to determine what you like.
Here is a pretty good way here:
Consider
start_x
where your mouse starts andend_x
where you are wanting it to end. Same fory
Hope that helps...