replaced JavaFX with Swing.