394 |
throw new IllegalThreadStateException ("Robot: waitForIdle called from " |
throw new IllegalThreadStateException ("Robot: waitForIdle called from " |
395 |
+ "the event dispatch thread"); |
+ "the event dispatch thread"); |
396 |
|
|
|
EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); |
|
397 |
try |
try |
398 |
{ |
{ |
399 |
q.invokeAndWait (new Runnable () { public void run () { } }); |
EventQueue.invokeAndWait (new Runnable () { public void run () { } }); |
400 |
} |
} |
401 |
catch (InterruptedException e) |
catch (InterruptedException e) |
402 |
{ |
{ |