charva.awt
Class EventQueue
public class EventQueue
extends java.lang.Object
Correct manage of FocusEvents ( Lost and Gained )
getNextEvent
public AWTEvent getNextEvent()
This method is only called if we know that an event is available.
- the first AWTEvent on the queue.
invokeLater
public static void invokeLater(Runnable runnable_)
Causes the runnable's run() method to be called in the
AWT dispatch thread.
postEvent
public void postEvent(AWTEvent evt_)
queuesAreEmpty
public boolean queuesAreEmpty()
Returns true if both the high-priority queue and the low-priority
queue are empty. It is not necessary to make this synchronized
because it is called from a synchronized method.
waitForNextEvent
public AWTEvent waitForNextEvent()
Block until an event is available, then return the event.
- the next available AWTEvent