ashivasubramanian / sc

Section Controller game
1 stars 1 forks source link

Load/Access UI using Event Dispatch Thread #32

Closed ashivasubramanian closed 6 years ago

ashivasubramanian commented 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.

List of classes that need to be changed:

  1. Loading LoginInterface in Main.
  2. Loading GameScreen in Renderer.
  3. Loading StationsTab & TrainsTab in GameScreen.