@Override
	public void actionPerformed(ActionEvent e) {
		switch(e.getActionCommand()){
		case "Return":
			CardLayout layout = (CardLayout) this.getParent().getLayout();
			layout.show(this.getParent(), "MANAGE_BOOKS");
			break;
		case "Edit":
			//Set dailyFee and maxFee to zero if the textfields for them are empty
			float dailyFeeValue, maxFeeValue;
			if(newDailyLateFee.getText().isEmpty()){
				dailyFeeValue=-1f;
			}else{
				dailyFeeValue =Float.parseFloat(newDailyLateFee.getText());
			}
			if(newMaxLateFee.getText().isEmpty()){
				maxFeeValue=-2f;
			}else{
				maxFeeValue = Float.parseFloat(newMaxLateFee.getText());
			}
			LibrarianActionsControl.editBook(this, oldInformation[0], newISBN.getText(),(String) comboBox.getSelectedItem(), newAuthor.getText(), newTitle.getText(), dailyFeeValue, maxFeeValue, (int) newNumberOfCopies.getValue());
			break;
		}
		
	}