Java Robot .setAutoWaitForIdle (boolean isOn)
Syntax
Robot.setAutoWaitForIdle(boolean isOn) has the following syntax.
public void setAutoWaitForIdle(boolean isOn)
Example
In the following code shows how to use Robot.setAutoWaitForIdle(boolean isOn) method.
/* w ww. ja va 2s.c om*/
import java.awt.Robot;
public class Main {
public static void main(String[] args) throws Exception {
Robot robot = new Robot();
robot.setAutoWaitForIdle(true);
System.out.println(robot.isAutoWaitForIdle());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »