jfreerails.client.top
Class SynchronizedEventQueue

java.lang.Object
  extended by java.awt.EventQueue
      extended by 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

Field Summary
private static boolean alreadyInUse
           
private static SynchronizedEventQueue instance
           
static java.lang.Object MUTEX
           
 
Constructor Summary
private SynchronizedEventQueue()
          Enforce singleton property.
 
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
 

Field Detail

MUTEX

public static final java.lang.Object MUTEX

instance

private static final SynchronizedEventQueue instance

alreadyInUse

private static boolean alreadyInUse
Constructor Detail

SynchronizedEventQueue

private SynchronizedEventQueue()
Enforce singleton property.

Method Detail

use

public static void use()

dispatchEvent

protected void dispatchEvent(java.awt.AWTEvent aEvent)
Overrides:
dispatchEvent in class java.awt.EventQueue