Closed ashivasubramanian closed 6 years ago
As per Swing best practices, any code that loads or accesses the UI must be executed only on the event dispatch thread (EDT). For this, we must be using the SwingUtilities class. Our code does not follow this best practice, and must be fixed.
SwingUtilities
List of classes that need to be changed:
LoginInterface
Main
GameScreen
Renderer
StationsTab
TrainsTab
As per Swing best practices, any code that loads or accesses the UI must be executed only on the event dispatch thread (EDT). For this, we must be using the
SwingUtilities
class. Our code does not follow this best practice, and must be fixed.List of classes that need to be changed:
LoginInterface
inMain
.GameScreen
inRenderer
.StationsTab
&TrainsTab
inGameScreen
.