private void previousButtonActionPerformed(java.awt.event.ActionEvent evt) {
    	double[][] inputValues = this.learning.getInputValues();
    	double[][] outputValues =this.learning.getOutputValues();
    	currentScenario--;
    	if (currentScenario<0){
    		currentScenario = inputValues.length-1;
    	}
    	//update labels
    	inputLabel.setText("Current Input: ");
    	outputLabel.setText("Target Output: ");
    	//update labels and set input
    	for (int i = 0; i<inputValues[currentScenario].length;i++){
    		inputLabel.setText(inputLabel.getText()+"  "+inputValues[currentScenario][i]);
    		myNetwork.setInput(0, i, inputValues[currentScenario][i]);
    	}
    	for (int i = 0; i<outputValues[currentScenario].length;i++){
    		outputLabel.setText(outputLabel.getText()+"  "+outputValues[currentScenario][i]);
    	}
    	//display result
    	this.calcResultButtonActionPerformed(evt);
    }