There’s a couple questions here on StackOverflow on the subject of threading with the Swing api but things still aren’t clear. What is the issue with the EDT, what is the proper way to initiate a Thread with Swing and in what cases should it be used?
P.S: Any sources in terms of good practises would be appreciated.
Check out the java tutorial on the event dispatch thread here and here. So the Event dispatch thread is the place where all the UI events are dealt with. This allows all the UI manipulating code to exist in one thread (the EDT) and therefore eliminate any thread safety issues.