EventQueue.getNextEvent

EventQueue.getNextEvent

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized AWTEvent getNextEvent() throws InterruptedException
Returns
the next AWTEvent
Description
Remove an event from the queue and return it. This method will block until an event has been posted by another thread.

Exceptions
InterruptedException if another thread has interrupted this thread.