mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 23:41:24 +08:00
Robot.java (waitForIdle): Call invokeAndWait in a static way.
* java/awt/Robot.java (waitForIdle): Call invokeAndWait in a static way. From-SVN: r98785
This commit is contained in:
parent
d08e2ccb27
commit
2500ada2ff
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user