public void actionPerformed(ActionEvent e) {
		Object o = e.getSource();
		
		if (o == typeComboBox) {
			if (myRecipe != null) {
				selectedRow = notesTable.getSelectedRow();
				myRecipe.setNoteType(selectedRow, (String)typeComboBox.getSelectedItem());
				
				if(((JComboBox)o).isPopupVisible() && (String)typeComboBox.getSelectedItem() == "Brewed") {
					
					int dialogResult = JOptionPane.showConfirmDialog(null, "Do you want to subtract the ingredients from your stock levels?",
							"Info", JOptionPane.YES_NO_OPTION );
					
					// does the user want to subtract the ingredients from stock?
					if(dialogResult == JOptionPane.YES_OPTION) {
						// run the DB Subtract
						Debug.print("Subtracting ingredients");
						myRecipe.substractIngredients();
					}
						
				}
			}
		} else if (o == addNoteButton) {
			if (myRecipe != null) {
				Note n = new Note();
				myRecipe.addNote(n);
				// select the new note so the text is associated with it:
				ListSelectionModel selectionModel = notesTable.getSelectionModel();
				int i = notesTableModel.getRowCount() -1;
				selectionModel.setSelectionInterval(i, i);
				
				notesTable.updateUI();
				
			}			
		} else if (o == delNoteButton) {
			if (myRecipe != null) {
				int i = notesTable.getSelectedRow();
				myRecipe.delNote(i);
				notesTable.updateUI();
			}			
		}
	}