Making the change from Swing to JavaFX