src/share/classes/java/awt/Robot.java

Print this page

        

*** 496,513 **** } } /** * Returns the number of milliseconds this Robot sleeps after generating an event. */ public synchronized int getAutoDelay() { return autoDelay; } /** * Sets the number of milliseconds this Robot sleeps after generating an event. ! * @throws IllegalArgumentException If <code>ms</code> is not between 0 and 60,000 milliseconds inclusive */ public synchronized void setAutoDelay(int ms) { checkDelayArgument(ms); autoDelay = ms; } --- 496,518 ---- } } /** * Returns the number of milliseconds this Robot sleeps after generating an event. + * + * @return the delay duration in milliseconds */ public synchronized int getAutoDelay() { return autoDelay; } /** * Sets the number of milliseconds this Robot sleeps after generating an event. ! * ! * @param ms the delay duration in milliseconds ! * @throws IllegalArgumentException If {@code ms} ! * is not between 0 and 60,000 milliseconds inclusive */ public synchronized void setAutoDelay(int ms) { checkDelayArgument(ms); autoDelay = ms; }
*** 521,532 **** /** * Sleeps for the specified time. * To catch any <code>InterruptedException</code>s that occur, * <code>Thread.sleep()</code> may be used instead. * @param ms time to sleep in milliseconds ! * @throws IllegalArgumentException if <code>ms</code> is not between 0 and 60,000 milliseconds inclusive * @see java.lang.Thread#sleep */ public synchronized void delay(int ms) { checkDelayArgument(ms); try { --- 526,539 ---- /** * Sleeps for the specified time. * To catch any <code>InterruptedException</code>s that occur, * <code>Thread.sleep()</code> may be used instead. + * * @param ms time to sleep in milliseconds ! * @throws IllegalArgumentException if {@code ms} ! * is not between 0 and 60,000 milliseconds inclusive * @see java.lang.Thread#sleep */ public synchronized void delay(int ms) { checkDelayArgument(ms); try {