@Override public void start(Stage stage) throws Exception { stage.setTitle("Tetris"); Group root = new Group(); Scene scene = new Scene(root, 800, 400); stage.setScene(scene); stage.show(); SceneManager scmanager = new SceneManager(stage, scene, root); stage.setOnCloseRequest(scmanager.getOnCloseWindow()); scmanager.launch(); }