Recently learning Android, there is a Handler class in android which is very useful. We can "post" runnable object to the end of another thread, something like queue, it is very dynamic in that case. Anyone know any similar class in Java SE that is able to do that?
JavaSwing
has SwingUtilities.invokeLater()
that takes a Runnable as paramter. That's one way to post something on the UI Thead
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