Example usage for java.awt Robot getAutoDelay

List of usage examples for java.awt Robot getAutoDelay

Introduction

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

Prototype

public synchronized int getAutoDelay() 

Source Link

Document

Returns 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.delay(1000);//w w  w. j  a  v  a  2s  .  c o m

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

}

From source file:Main.java

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

    robot.setAutoDelay(1000);//  w  w w  .j av  a2s. c  om
    System.out.println(robot.getAutoDelay());

}