All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.EventQueue

java.lang.Object
   |
   +----java.awt.EventQueue

public class EventQueue
extends Object
EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes. There is only one EventQueue for the system.


Constructor Index

 o EventQueue()

Method Index

 o getNextEvent()
Remove an event from the queue and return it.
 o peekEvent()
Return the first event without removing it.
 o peekEvent(int)
 o postEvent(AWTEvent)
Post a 1.1-style event to the EventQueue.

Constructors

 o EventQueue
    method EventQueue() public 

Methods

 o postEvent
    method postEvent(theEvent=AWTEvent)  public    protect 
Post a 1.1-style event to the EventQueue.

Parameters:
theEvent - an instance of java.awt.AWTEvent, or a subclass of it.
 o getNextEvent
    method getNextEvent() returns AWTEvent public    protect Signals InterruptedException
Remove an event from the queue and return it. This method will block until an event has been posted by another thread.

Returns:
the next AWTEvent
Throws: InterruptedException
if another thread has interrupted this thread.
 o peekEvent
    method peekEvent() returns AWTEvent public    protect 
Return the first event without removing it.

Returns:
the first AWTEvent
 o peekEvent
    method peekEvent(id=int) returns AWTEvent public    protect 

All Packages  Class Hierarchy  This Package  Previous  Next  Index