EventQueue.pop() Stops dispatching events using this EventQueue.
SwingUtilities.isEventDispatchThread() should return false after the EventQueue.pop() called.
It works perfectly till JDK 1.6. But not working after JDK 7 and later versions. EventQueue.pop() is not stopping dispatching events.
As a result SwingUtilities.isEventDispatchThread() returning true even after EventQueue.pop() called.
My code is depening on EventQueue.push() to replace with new AWT-EventQueue, and EventQueue.pop() to stop dispatching events.
As both are not working from JDK 1.7, My code is broken in newer versions.
It became a show stopper for my migration.
But there was no change to the API documentation of the class EventQueue
EventQueue API
I checked the source code, the logic is completely changed. However i do not see the changes documented in the class.
To me, it seems a bug in JDK 1.7 and later versions.
Can anyone guide me how to resolve this issue?