FlashCardsProject/build/build/src/jf/flashcards/address/view/FlashCardOverviewController.java
/**
     * "Flips the card" by changing the front and back labels
     * flip to back-> change front labels to "" and change back label to the card pair at index 
     */
"Flips the card" by changing the front and back labels
flip to back-> change front labels to "" and change back label to the card pair at index
" Flips the card " by changing the front and back labels flip to back - > change front labels to " " and change back label to the card pair at index
@FXML
    private void flipCard() {
    	if(currentFlashCardStack.isEmpty())
    	{
    		Alert alert = new Alert(AlertType.WARNING);
    		alert.initOwner(mainApp.getPrimaryStage());
    		alert.setTitle("No Selection");
    		alert.setHeaderText("No cards are in the stack");
    		alert.setContentText("Please add cards to the current stack.");
    		alert.showAndWait();
    	}
    	else if(frontShowing)
    	{
    		backCardLabel.setText(currentFlashCardStack.get(listIndex).getBack());
    		frontCardLabel.setText("");
    		frontShowing = false;
    		frontBackLabel.setText("Back");
	    	backCardLabel.setMaxWidth(280);
	    	backCardLabel.setMaxHeight(160);
	    	backCardLabel.setWrapText(true);
    	}
    	else if(frontShowing == false) {
    		frontCardLabel.setText(currentFlashCardStack.get(listIndex).getFront());
    		backCardLabel.setText("");
    		frontShowing = true;
    		frontBackLabel.setText("Front");
    	}
    }
@ FXML private void flipCard ( ) { if ( currentFlashCardStack . isEmpty ( ) ) { Alert alert = new Alert ( AlertType . WARNING ) ; alert . initOwner ( mainApp . getPrimaryStage ( ) ) ; alert . setTitle ( "No Selection" ) ; alert . setHeaderText ( "No cards are in the stack" ) ; alert . setContentText ( "Please add cards to the current stack." ) ; alert . showAndWait ( ) ; } else if ( frontShowing ) { backCardLabel . setText ( currentFlashCardStack . get ( listIndex ) . getBack ( ) ) ; frontCardLabel . setText ( "" ) ; frontShowing = false ; frontBackLabel . setText ( "Back" ) ; backCardLabel . setMaxWidth ( 280 ) ; backCardLabel . setMaxHeight ( 160 ) ; backCardLabel . setWrapText ( true ) ; } else if ( frontShowing == false ) { frontCardLabel . setText ( currentFlashCardStack . get ( listIndex ) . getFront ( ) ) ; backCardLabel . setText ( "" ) ; frontShowing = true ; frontBackLabel . setText ( "Front" ) ; } }
"Flips the card" by changing the front and back labels
 flip to back-> change front labels to "" and change back label to the card pair at index
" Flips the card " by changing the front and back labels flip to back - > change front labels to " " and change back label to the card pair at index
//changes labels to show back  //changes labels to show front 