@Override
	public void itemStateChanged(ItemEvent event) {
		if (event.getStateChange() == ItemEvent.SELECTED) {
			if (event.getItemSelectable().equals(comboBox)) {
				setTextField(comboBox.getSelectedIndex(), driver.getStockDB().getStockList());
			}
			if (event.getItemSelectable().equals(supplierComboBox)) {
				String[] values = ((String) supplierComboBox.getSelectedItem()).split("\\t");
				if (supplierComboBox.getItemAt((supplierComboBox.getSelectedIndex())).equals(
						"<html><font color='red'>Add New Supplier</font></html>")) {
					driver.getGui().getTabbedPane().setSelectedComponent(
							driver.getGui().getSupplierTab());
					driver.getGui().getSupplierTab().getNewSupplierButton().doClick();
				}
				else
					supplier = driver.getPersonDB().getSupplierById(
							Integer.parseInt(values[1].trim()));
			}

		}
	}