jfreerails.client.top
Class SynchronizedEventQueue
java.lang.Object
java.awt.EventQueue
jfreerails.client.top.SynchronizedEventQueue
public final class SynchronizedEventQueue
- extends java.awt.EventQueue
This event queue is synchronized on the MUTEX. This lets one control when
events can be dispatched.
Note, changed to be a singleton to get it working on pre 1.4.2 VMs.
- Author:
- Luke
Method Summary |
protected void |
dispatchEvent(java.awt.AWTEvent aEvent)
|
static void |
use()
|
Methods inherited from class java.awt.EventQueue |
getCurrentEvent, getMostRecentEventTime, getNextEvent, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, push |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MUTEX
public static final java.lang.Object MUTEX
instance
private static final SynchronizedEventQueue instance
alreadyInUse
private static boolean alreadyInUse
SynchronizedEventQueue
private SynchronizedEventQueue()
- Enforce singleton property.
use
public static void use()
dispatchEvent
protected void dispatchEvent(java.awt.AWTEvent aEvent)
- Overrides:
dispatchEvent
in class java.awt.EventQueue