Java Swing Tutorial - Java Robot.isAutoWaitForIdle()








Syntax

Robot.isAutoWaitForIdle() has the following syntax.

public boolean isAutoWaitForIdle()

Example

In the following code shows how to use Robot.isAutoWaitForIdle() method.

import java.awt.Robot;
// w ww . j ava  2 s .c  o m
public class Main {
  public static void main(String[] args) throws Exception {
    Robot robot = new Robot();

    
    System.out.println(robot.isAutoWaitForIdle());
    
  }
}

The code above generates the following result.