junit.extensions.jfcunit
Class WindowMonitor.DispatchThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjunit.extensions.jfcunit.WindowMonitor.DispatchThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
WindowMonitor

private class WindowMonitor.DispatchThread
extends java.lang.Thread

Handle all Component events in a separate thread. The reason for this is that WindowEvents tend to be used to do lots of processing on the Window hierarchy. As a result, it can frequently result in deadlock situations.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WindowMonitor.DispatchThread(java.lang.String name)
          Constructor.
 
Method Summary
 void run()
          Run the Dispatch thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowMonitor.DispatchThread

public WindowMonitor.DispatchThread(java.lang.String name)
Constructor.

Parameters:
name - Name of the thread.
Method Detail

run

public void run()
Run the Dispatch thread. Process the events recieved and track the windows.



Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999