EventQueueNameEventQueue
DescriptionThe 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); } ConstructorEventQueuepublic EventQueue()
Instance MethodsgetNextEventpublic synchronized AWTEvent getNextEvent() throws InterruptedException
peekEventpublic synchronized AWTEvent peekEvent()
public synchronized AWTEvent peekEvent (int id)
See AlsoAWTEvent, Event |
|