diff options
Diffstat (limited to 'libjava/java/awt')
-rw-r--r-- | libjava/java/awt/Robot.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/java/awt/Robot.java b/libjava/java/awt/Robot.java index 23b6f81..8741b89 100644 --- a/libjava/java/awt/Robot.java +++ b/libjava/java/awt/Robot.java @@ -394,10 +394,9 @@ public class Robot throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); - EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { - q.invokeAndWait (new Runnable () { public void run () { } }); + EventQueue.invokeAndWait (new Runnable () { public void run () { } }); } catch (InterruptedException e) { |