Commit 2500ada2 by Tom Tromey Committed by Tom Tromey

Robot.java (waitForIdle): Call invokeAndWait in a static way.

	* java/awt/Robot.java (waitForIdle): Call invokeAndWait in a
	static way.

From-SVN: r98785
parent d08e2ccb
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> 2005-04-26 Mark Wielaard <mark@klomp.org>
* java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
......
...@@ -394,10 +394,9 @@ public class Robot ...@@ -394,10 +394,9 @@ public class Robot
throw new IllegalThreadStateException ("Robot: waitForIdle called from " throw new IllegalThreadStateException ("Robot: waitForIdle called from "
+ "the event dispatch thread"); + "the event dispatch thread");
EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue ();
try try
{ {
q.invokeAndWait (new Runnable () { public void run () { } }); EventQueue.invokeAndWait (new Runnable () { public void run () { } });
} }
catch (InterruptedException e) catch (InterruptedException e)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment