From 2500ada2ff5b66d2dbafc3f357047bb8d8363e37 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 26 Apr 2005 18:28:49 +0000 Subject: [PATCH] Robot.java (waitForIdle): Call invokeAndWait in a static way. * java/awt/Robot.java (waitForIdle): Call invokeAndWait in a static way. From-SVN: r98785 --- libjava/ChangeLog | 5 +++++ libjava/java/awt/Robot.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e7e0f15..519f9ae 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-26 Tom Tromey + + * java/awt/Robot.java (waitForIdle): Call invokeAndWait in a + static way. + 2005-04-26 Mark Wielaard * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec 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) { -- 2.7.4