public void initRootLayout() { try { // Load root layout from fxml file. FXMLLoader loader = new FXMLLoader(); loader.setLocation(MainApp.class.getResource("view/RootLayout.fxml")); rootLayout = (BorderPane) loader.load(); // Show the scene containing the root layout. Scene scene = new Scene(rootLayout); primaryStage.setScene(scene); // Give the controller access to the main app. // RootLayoutController controller = loader.getController(); rootController = loader.getController(); rootController.initialize( location, resources); // unsure of what these mean or why they are needed primaryStage.show(); } catch (IOException e) { e.printStackTrace(); } }
public String getRuleName() { return rootController.getRuleName(); }