FlashCardsProject/build/project/src/jf/flashcards/address/MainApp.java
/**
	 * displays the AddNewFlashCardStack() view 
	 * allows user to add a new flash card stack
	 * 
	 * @return boolean
	 */
displays the AddNewFlashCardStack() view
allows user to add a new flash card stack

@return boolean
displays the AddNewFlashCardStack () view allows user to add a new flash card stack @return boolean
public boolean showAddNewFlashCardStack()
	{
		try {
            FXMLLoader loader = new FXMLLoader();
            loader.setLocation(MainApp.class.getResource("view/AddFlashCardStack.fxml"));
            AnchorPane page = (AnchorPane) loader.load();
            Stage dialogStage = new Stage();
            dialogStage.setTitle("Edit Person");
            dialogStage.initModality(Modality.WINDOW_MODAL);
            dialogStage.initOwner(primaryStage);
            Scene scene = new Scene(page);
            dialogStage.setScene(scene);
            AddFlashCardStackController controller = loader.getController();
            controller.setDialogStage(dialogStage);
            dialogStage.showAndWait();
            return controller.isOkClicked();
		}
		catch(IOException e)
		{
            e.printStackTrace();
            return false;
		}
	}
public boolean showAddNewFlashCardStack ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( MainApp . class . getResource ( "view/AddFlashCardStack.fxml" ) ) ; AnchorPane page = ( AnchorPane ) loader . load ( ) ; Stage dialogStage = new Stage ( ) ; dialogStage . setTitle ( "Edit Person" ) ; dialogStage . initModality ( Modality . WINDOW_MODAL ) ; dialogStage . initOwner ( primaryStage ) ; Scene scene = new Scene ( page ) ; dialogStage . setScene ( scene ) ; AddFlashCardStackController controller = loader . getController ( ) ; controller . setDialogStage ( dialogStage ) ; dialogStage . showAndWait ( ) ; return controller . isOkClicked ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } }
displays the AddNewFlashCardStack() view
 allows user to add a new flash card stack
displays the AddNewFlashCardStack () view allows user to add a new flash card stack
//sets the Stage and Scene //Allows the new Scene to be shown in a window  //create scene object and give it the page variable  //References the AddFlashCardStackController class  //so that it can be connected to the main class //waits until the dialogStage is closed