public void actionPerformed(ActionEvent e) {
		
		Object o = e.getSource();
		
		Debug.print("Action performed on: " + o);
		if(o == okButton) {
			
			Debug.print("Checking Yeast...");
			// create a new Yeast object
			Yeast i = new Yeast();
			i.setName(txtName.getText());
			i.setCost(txtCost.getText());
			i.setDescription(txtDescr.getText());
			i.setModified(bModified.isSelected());
			
			int result = 1;
			int found = 0;
			
			// check to see if we have this fermentable already in the db
			if((found = db.find(i)) >= 0){
				// This already exists, do we want to overwrite?
				result = JOptionPane.showConfirmDialog((Component) null, 
							"This ingredient exists, overwrite original?","alert", JOptionPane.YES_NO_CANCEL_OPTION); 
				
				switch(result) {
				case JOptionPane.NO_OPTION:
					setVisible(false);
					dispose();
					return;
					
				case JOptionPane.YES_OPTION:
					db.fermDB.remove(found);
					break;
				
				case JOptionPane.CANCEL_OPTION:
					return;
				}
			}
			
			
			Debug.print("Adding yeast: " + i.getName());
			db.yeastDB.add(i);
			db.writeYeast();

			setVisible(false);
			dispose();
			
		} else if(o == cancelButton) {
			dispose();
		}
		
	}