src/share/classes/java/awt/Robot.java
Print this page
@@ -496,18 +496,23 @@
}
}
/**
* 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.
- * @throws IllegalArgumentException If <code>ms</code> is not between 0 and 60,000 milliseconds inclusive
+ *
+ * @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,12 +526,14 @@
/**
* 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
+ * @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 {