-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
6
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
Sometimes an application needs to know if there are some specific events
present in the AWT event queue. This occurs mainly in event listeners.
Currently, it is only possible to access the event on top of the queue, or to
get the first event with a given ID. If the application is interested in events
of several IDs, and gets them, it has no way to determine which is first.
Timestamp is not present in all events.
What is needed is an iterator that allows an application to scan the event
queue.
JUSTIFICATION :
This enhancement is necessary when an application wants to determine
if upon window activation some mouse buttons are pressed.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have an EventQueue method that delivers an iterator that can be used
to scan the queue.
ACTUAL -
No such method is present.
Sometimes an application needs to know if there are some specific events
present in the AWT event queue. This occurs mainly in event listeners.
Currently, it is only possible to access the event on top of the queue, or to
get the first event with a given ID. If the application is interested in events
of several IDs, and gets them, it has no way to determine which is first.
Timestamp is not present in all events.
What is needed is an iterator that allows an application to scan the event
queue.
JUSTIFICATION :
This enhancement is necessary when an application wants to determine
if upon window activation some mouse buttons are pressed.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have an EventQueue method that delivers an iterator that can be used
to scan the queue.
ACTUAL -
No such method is present.
- relates to
-
JDK-4306192 Access to EventQueue functions too limited
- Closed