Many-a-times I think why Java
forced us to use EDT while working with Swing
?
Won't it would be much easier to update Swing
components from any Thread
or in other words it can be multithreaded
.
Indeed, SwingUtilities.invokeAndWait
and SwingUtilities.invokeLater
helps us
to line up the Swing
events, but, they won't be comming into picture if the GUI
components can be updated from any other Thread
.
And, have Java makers really forgotten to make Swing
Thread-Safe?
What problem may arise if swing is Multithreaded? My Java program have "Frozen" a dozen of time beacuse of this :/