Should I create swing elements into EDT?
I got the concurrency problems with editing non thread-safe graphics elements, but I\'m creating them, they aren\'t shown yet, a
In the Swing separable model architecture, a view component listens to its model. Because a view may respond arbitrarily to events generated by model updates, the corresponding model must also be updated on the EDT. You can mitigate latency via one of two basic approaches:
Use EventQueue.invokeLater() from a separate thread, as shown here.
Use SwingWorker to obtain the additional benefits enumerated here.