public class SunJDK14ConditionalEventPump extends ConditionalEventPump implements EventFilterable
EventQueue.peekEvent(),
that does not flush pending events to the EventQueue before peeking for them.ConditionalEventPump.ThrowableHandlerdebug| Constructor and Description |
|---|
SunJDK14ConditionalEventPump() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.AWTEvent |
peekEvent(java.awt.EventQueue queue)
Flushes pending events before peeking the EventQueue.
|
canPumpEvent, getEventFilter, pumpEvents, setEventFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEventFilter, setEventFilterprotected java.awt.AWTEvent peekEvent(java.awt.EventQueue queue)
EventQueue.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 returnpeekEvent in class ConditionalEventPump