Robot.java (waitForIdle): Call invokeAndWait in a static way.
authorTom Tromey <tromey@redhat.com>
Tue, 26 Apr 2005 18:28:49 +0000 (18:28 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 26 Apr 2005 18:28:49 +0000 (18:28 +0000)
* java/awt/Robot.java (waitForIdle): Call invokeAndWait in a
static way.

From-SVN: r98785

libjava/ChangeLog
libjava/java/awt/Robot.java

index e7e0f15fc88e5e3b2806e688c32e9c3896bb65d8..519f9aed8f3b1e33832c49e3169a4549100cf79d 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-26  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/Robot.java (waitForIdle): Call invokeAndWait in a
+       static way.
+
 2005-04-26  Mark Wielaard  <mark@klomp.org>
 
        * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
index 23b6f8104426b8d4cfecf15c84ba441d795f5fcd..8741b89b4501d4fab3131d20a42ebec9255fbe14 100644 (file)
@@ -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)
       {