How to move cursor on screen using java ???


******************************************************************
COMPLETE SOURCE CODE FOR : MovingCursorOnScreen.java
******************************************************************


import java.awt.Robot;

public class MovingCursorOnScreen
{
public static void main(String[]args)
{
try
{
int Xcoordinate=10;
int Ycoordinate=50;

Robot a=new Robot();

//this method will move your cursor to the location base on Xcoordinate and Ycoordinate
a.mouseMove(Xcoordinate,Ycoordinate);
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
}


******************************************************************
JUST COMPILE AND EXECUTE IT
******************************************************************

RELAXING NATURE VIDEO