FlashCardsProject/build/project/src/jf/flashcards/address/MainApp.java
/**
	 * Initializes the RootStage view of our application 
	 */
Initializes the RootStage view of our application
Initializes the RootStage view of our application
public void initRootStage()
	{
		try {
			FXMLLoader loader = new FXMLLoader();
			loader.setLocation(MainApp.class.getResource("view/RootStage.fxml"));
			rootStage = (BorderPane) loader.load(); 
			Scene scene = new Scene(rootStage);
			primaryStage.setScene(scene);
            RootStageController controller = loader.getController();
            controller.setMainApp(this);
			primaryStage.show();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}
public void initRootStage ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( MainApp . class . getResource ( "view/RootStage.fxml" ) ) ; rootStage = ( BorderPane ) loader . load ( ) ; Scene scene = new Scene ( rootStage ) ; primaryStage . setScene ( scene ) ; RootStageController controller = loader . getController ( ) ; controller . setMainApp ( this ) ; primaryStage . show ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Initializes the RootStage view of our application
Initializes the RootStage view of our application
//loads the RootStage xml //sets the rootStage variable to the loader (remember the rootStage fxml is a borderPane)  //sets the scene to the rootStage //allows the RootStageController to be referenced back to the main class