public void showItem(Item item)
	{
		//when messing with craft book selector w/o item first loaded
		if (item == null)
		{
			return;
		}
		
		currentItem = item;

		//CraftIntoPanel treats all Items equally.
		guiCraftIntoPanel.craftTable.setData(item);
		
		//Casting for CraftComponentPanel and ItemInfoPanel.
		switch(item.getType())
		{
		case MATERIAL:
			showMaterial((Material) item);
			break;
		case CRAFTABLE:
			showCraftable((Craftable) item);
			break;
		case CRAFTBOOK:
			showCraftBook((CraftBook) item);
			break;
		default:
			try {
				throw new Exception();
			} catch (Exception e) {
				System.err.println("Unknown item type.");
				e.printStackTrace();
			}
			break;
		}
	}