private void updateLabels(int dummy)
	{
		labelGold.setText(sliderGold.value()+"/"+player.getResource(core.ResourceType.GOLD));
		labelWood.setText(sliderWood.value()+"/"+player.getResource(core.ResourceType.WOOD));
		labelOre.setText(sliderOre.value()+"/"+player.getResource(core.ResourceType.ORE));
		try {
		amount  = (
				convert((core.ResourceType)(toWhat.itemData(toWhat.currentIndex())), core.ResourceType.GOLD, sliderGold.value()) +
				convert((core.ResourceType)(toWhat.itemData(toWhat.currentIndex())), core.ResourceType.WOOD, sliderWood.value()) +
				convert((core.ResourceType)(toWhat.itemData(toWhat.currentIndex())), core.ResourceType.ORE, sliderOre.value())
			);
		howMany.setText(""+amount);
		} catch (java.lang.NullPointerException e) {}
	}