FlashCardsProject/build/project/src/jf/flashcards/address/MainApp.java
/**
	 * shows the DeleteFlashCardStack view
	 * allows the user to delete a flashcard stack  
	 * 
	 * 
	 */
shows the DeleteFlashCardStack view
allows the user to delete a flashcard stack
shows the DeleteFlashCardStack view allows the user to delete a flashcard stack
public void showDeleteFlashCardStack()
	{
		try {
	        FXMLLoader loader = new FXMLLoader();
	        loader.setLocation(MainApp.class.getResource("view/DeleteStackDialog.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);
            DeleteStackDialogController controller = loader.getController();
            controller.setDialogStage(dialogStage);
            dialogStage.showAndWait();
		}		
		catch(IOException e)
		{
            e.printStackTrace();
		}
	}
public void showDeleteFlashCardStack ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( MainApp . class . getResource ( "view/DeleteStackDialog.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 ) ; DeleteStackDialogController controller = loader . getController ( ) ; controller . setDialogStage ( dialogStage ) ; dialogStage . showAndWait ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
shows the DeleteFlashCardStack view
 allows the user to delete a flashcard stack
shows the DeleteFlashCardStack view allows the user to delete a flashcard 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  //waits until the dialogStage is closed