Example usage for java.awt Robot setAutoDelay

List of usage examples for java.awt Robot setAutoDelay

Introduction

In this page you can find the example usage for java.awt Robot setAutoDelay.

Prototype

public synchronized void setAutoDelay(int ms) 

Source Link

Document

Sets the number of milliseconds this Robot sleeps after generating an event.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    Robot robot = new Robot();

    robot.setAutoDelay(1000);
    System.out.println(robot.getAutoDelay());

}