FlashCardsProject/build/project/src/jf/flashcards/address/MainApp.java
/**
	 * sets the FlashCardOverview was the scene 
	 */
sets the FlashCardOverview was the scene
sets the FlashCardOverview was the scene
public void showFlashCardOverview()
	{
		try {
            FXMLLoader loader = new FXMLLoader();
            loader.setLocation(MainApp.class.getResource("view/FlashCardOverview.fxml"));
            AnchorPane flashcardOverview = (AnchorPane) loader.load();
            rootStage.setCenter(flashcardOverview);
            FlashCardOverviewController controller = loader.getController();
            controller.setMainApp(this);
		}
		catch(IOException e)
		{
			e.printStackTrace();
		}
	}
public void showFlashCardOverview ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( MainApp . class . getResource ( "view/FlashCardOverview.fxml" ) ) ; AnchorPane flashcardOverview = ( AnchorPane ) loader . load ( ) ; rootStage . setCenter ( flashcardOverview ) ; FlashCardOverviewController controller = loader . getController ( ) ; controller . setMainApp ( this ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
sets the FlashCardOverview was the scene
sets the FlashCardOverview was the scene
//you have to load the root class for the fxml, in this case it is an AnchorPane  //sets the FlashCardOverview xml to the center of the rootStage BorderPane 