@Override
	public void valueChanged(ListSelectionEvent e) {
		if (e.getSource() == stockList) {
			// check if order list is empty
			if (stockList.getSelectedIndex() > -1) {
				// separate the text in the selected list item
				String[] values = stockList.getSelectedValue().split("\\t");
				driver.getGui().getTabbedPane().setSelectedComponent(driver.getGui().getProductTab());
				
				driver.getGui().getProductTab().setSelectedProduct(
						driver.getStockDB().getStockItem(Integer.parseInt(values[0].trim())));
				
				
			}
		}
	}