src/main/java/tsz/game/view/MainApp.java
/**
	 * Shows the Top List window.
	 */
Shows the Top List window.
Shows the Top List window .
public void showTopList() {
		try {
			FXMLLoader loader = new FXMLLoader();
			loader.setLocation(this.getClass().getClassLoader().getResource("fxml/TopListLayout.fxml"));
			Pane settingsLayout = (Pane) loader.load();
			TopListController controller = loader.getController();
			controller.setMainApp(this);
			controller.setTopList();
			Scene scene = new Scene(settingsLayout);
			primaryStage.setScene(scene);
			primaryStage.setResizable(false);
			primaryStage.centerOnScreen();
			logger.info("Top List shown.");
		} catch (IOException e) {
			logger.error(e.toString());
		}		
	}
public void showTopList ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( this . getClass ( ) . getClassLoader ( ) . getResource ( "fxml/TopListLayout.fxml" ) ) ; Pane settingsLayout = ( Pane ) loader . load ( ) ; TopListController controller = loader . getController ( ) ; controller . setMainApp ( this ) ; controller . setTopList ( ) ; Scene scene = new Scene ( settingsLayout ) ; primaryStage . setScene ( scene ) ; primaryStage . setResizable ( false ) ; primaryStage . centerOnScreen ( ) ; logger . info ( "Top List shown." ) ; } catch ( IOException e ) { logger . error ( e . toString ( ) ) ; } }
Shows the Top List window.
Shows the Top List window .