FlashCardsProject/build/build/src/jf/flashcards/address/view/AddCardToStackController.java
/**
	 * checks whether the inputs are valid and then adds the card to the database
	 * allows the user to continue adding cards after a successful addition  
	 */
checks whether the inputs are valid and then adds the card to the database
allows the user to continue adding cards after a successful addition
checks whether the inputs are valid and then adds the card to the database allows the user to continue adding cards after a successful addition
@FXML 
	private void handleAddButton()
	{
		if(checkValidInputs())
		{
			FlashCardDatabase.addNewCardToStack(currentTable, newCardFront.getText(), newCardBack.getText());
			String msgText = newCardFront.getText() + " has been succesfully added!";
			newCardFront.clear();
			newCardBack.clear();
			msgLabel.setText(msgText);
		}
		else {
			msgLabel.setText("Card could not be added");
		}
	}
@ FXML private void handleAddButton ( ) { if ( checkValidInputs ( ) ) { FlashCardDatabase . addNewCardToStack ( currentTable , newCardFront . getText ( ) , newCardBack . getText ( ) ) ; String msgText = newCardFront . getText ( ) + " has been succesfully added!" ; newCardFront . clear ( ) ; newCardBack . clear ( ) ; msgLabel . setText ( msgText ) ; } else { msgLabel . setText ( "Card could not be added" ) ; } }
checks whether the inputs are valid and then adds the card to the database
 allows the user to continue adding cards after a successful addition
checks whether the inputs are valid and then adds the card to the database allows the user to continue adding cards after a successful addition