The EventQueue
javadoc states that it is required that enqueued events are dispatched sequentially and in order.
Is it correct that Runnable
s enqueued with EventQueue.invokeLater
are guaranteed to be dispatched before subsequent user events (e.g. a MouseEvent
)? In other words can an event handler be executed before the enqueued Runnable
, if the user event happend after EventQueue.invokeLater
.
Thanks!
The API docs state that events are
In the same order as they are enqueued.
But if you check the source code, you'll see that that isn't always the case although it is largely correct for most purposes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With