FlashCardsProject/build/build/src/jf/flashcards/address/view/FlashCardOverviewController.java
/**
     * when a new item is selected from the list, displayStackDetails is called, which changes 
     * what is displayed and what the currentFlashCardStack is 
     * @param selectedValue
     */
when a new item is selected from the list, displayStackDetails is called, which changes
what is displayed and what the currentFlashCardStack is
@param selectedValue
when a new item is selected from the list displayStackDetails is called which changes what is displayed and what the currentFlashCardStack is @param selectedValue
private void displayStackDetails(SimpleStringProperty selectedValue)
    {
    	currentSelectedString = selectedValue.get();
    	currentFlashCardStack = FlashCardDatabase.getFlashCardStack(currentSelectedString);
    	if(!currentFlashCardStack.isEmpty()){
    		frontCardLabel.setText(currentFlashCardStack.get(0).getFront());
    		frontBackLabel.setText("Front");
    	}
    	else
    	{
    		frontBackLabel.setText("");
    		frontCardLabel.setText("");
    		backCardLabel.setText("");
    	}
    }
private void displayStackDetails ( SimpleStringProperty selectedValue ) { currentSelectedString = selectedValue . get ( ) ; currentFlashCardStack = FlashCardDatabase . getFlashCardStack ( currentSelectedString ) ; if ( ! currentFlashCardStack . isEmpty ( ) ) { frontCardLabel . setText ( currentFlashCardStack . get ( 0 ) . getFront ( ) ) ; frontBackLabel . setText ( "Front" ) ; } else { frontBackLabel . setText ( "" ) ; frontCardLabel . setText ( "" ) ; backCardLabel . setText ( "" ) ; } }
when a new item is selected from the list, displayStackDetails is called, which changes
 what is displayed and what the currentFlashCardStack is
 @param selectedValue
when a new item is selected from the list displayStackDetails is called which changes what is displayed and what the currentFlashCardStack is @param selectedValue
//gets the currently selected flash card stack  //if the stack is not empty, set the first item in the list to the label //if the stack is empty, set all the labels to empty 