@Override
	public void itemStateChanged(ItemEvent event) {
		if (event.getStateChange() == ItemEvent.SELECTED) {
			if (event.getItemSelectable().equals(comboBox)) {
				automaticItemSelection = true;
				if (getIndex(driver.getPersonDB().getCustomerList()) != -1) {
					setTextField(getIndex(driver.getPersonDB().getCustomerList()), driver
							.getPersonDB().getCustomerList());
				}
			}
			if (event.getItemSelectable().equals(orderComboBox)) {

				String[] values = ((String) orderComboBox.getSelectedItem()).split("\\t");

				if (values != null && !automaticItemSelection) {
					showOrderDetails(driver.getOrderDB().getOrderById(
							Integer.parseInt(values[1].trim()),
							driver.getOrderDB().getCustomerOrderList()));
				}
			}
			revalidate();
			repaint();
		}
	}