aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/Robot.java3
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)
{