public class SunJDK17ConditionalEventPump extends SunJDK141ConditionalEventPump
Locks instead of using the synchronized keyword.ConditionalEventPump.ThrowableHandler| Constructor and Description |
|---|
SunJDK17ConditionalEventPump() |
| Modifier and Type | Method and Description |
|---|---|
protected AWTEvent |
waitForEvent()
Flushes pending events before waiting for the next event.
|
canPumpEventgetEventFilter, getEventQueue, peekEvent, pumpEvents, setEventFilterprotected AWTEvent waitForEvent()
SunJDK14ConditionalEventPumpEventQueue.getNextEvent()
and EventQueue.peekEvent(): the first always flushes pending events,
the second does not. This missing flushing is the reason why peekEvent() returns null
causing the proxy implementation of Conditional.evaluate() to never returnwaitForEvent in class SunJDK14ConditionalEventPumpCopyright © 2002-2011. All Rights Reserved.