@Override
	public void itemStateChanged(ItemEvent e) {
		
		if (e.getStateChange() == ItemEvent.SELECTED)
		{
			panel.quickItems.removeAllItems();
		}
		
		if (e.getStateChange() == ItemEvent.SELECTED && e.getItem().toString() != "select") 
		{
			
			System.out.println("Item changed");
			
			List<Item> items;
			if(e.getItem().toString().equalsIgnoreCase("microbiologyevents") || e.getItem().toString().equalsIgnoreCase("poe_order") || e.getItem().toString().equalsIgnoreCase("procedureevents") || e.getItem().toString().equalsIgnoreCase("noteevents"))
			{
				items = App.setup.getSpecialItems(e.getItem().toString());
			}
			else
			{
				items = App.setup.getItems(App.tableToItemsTable.get(e.getItem().toString()));
			}
			for(Item item: items)
			{
				panel.quickItems.addItem(item);
			}
			
		}
		panel.searchField.setText("");
		
	}