< prev index next >

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

Print this page

        

*** 669,680 **** */ public synchronized void delay(int ms) { checkDelayArgument(ms); try { Thread.sleep(ms); ! } catch(InterruptedException ite) { ! ite.printStackTrace(); } } private void checkDelayArgument(int ms) { if (ms < 0 || ms > MAX_DELAY) { --- 669,680 ---- */ public synchronized void delay(int ms) { checkDelayArgument(ms); try { Thread.sleep(ms); ! } catch (final InterruptedException ignored) { ! Thread.currentThread().interrupt(); } } private void checkDelayArgument(int ms) { if (ms < 0 || ms > MAX_DELAY) {
< prev index next >