Move the Cursor on the Screen in Java

Description

The following code shows how to move the Cursor on the Screen.

Example


/*  ww w.j a va 2s . co m*/
import java.awt.Robot;

public class Main {
  public static void main(String[] argv) throws Exception {
    Robot robot = new Robot();
    robot.mouseMove(500, 500);
  }
}




















Home »
  Java Tutorial »
    Development »




Java Algorithms
Java Clipboard
Java Compiler
Java Desktop
Java Virtual Machine
Java Math
OS
Random
Java Robot
Java RuntimeMXBean
Java Timer
Java UUID
Java Internationalization