-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
1.2fcs
-
sparc
-
solaris_2.5
-
Not verified
Name: mgC56079 Date: 04/24/98
Javadoc says:
/**
* Returns true if the calling thread is this EventQueue's
* dispatch thread. Use this call the ensure that a given
* task is being executed (or not being) on the current
* EventDispatchThread.
*
* @return true if running on this EventQueue's dispatch thread.
*/
public static boolean isDispatchThread() {
return (Thread.currentThread() instanceof EventDispatchThread);
}
This is a static method so there is no _this_ EventQueue's dispatch thread.
This method actually returns true if current thread is _any_ EventQueue's
dispatch thread (each instance of EventQueue has separate dispatch thread).
======================================================================