EventQueue

Name

EventQueue

[Graphic: Figure from the text]

Description

The EventQueue class is a facility for queuing Java 1.1 AWT events, either for the system or for some other purpose. You rarely need to create your own event queue; for most purposes, you will want to work with the system's event queue, which you acquire using the Toolkit.

Class Definition

public class EventQueue extends Object {
 // Constructor public EventQueue(); // Instance Methods public synchronized AWTEvent getNextEvent() throws InterruptedException;
public synchronized AWTEvent peekEvent();
public synchronized AWTEvent peekEvent (int id);
public synchronized void postEvent (AWTEvent theEvent);
}

Constructor

EventQueue

public EventQueue()

Instance Methods

getNextEvent

public synchronized AWTEvent getNextEvent() throws InterruptedException

peekEvent

public synchronized AWTEvent peekEvent()

public synchronized AWTEvent peekEvent (int id)

See Also

AWTEvent, Event