public void updateUnits()
	{
		name1.setText(hero1.getName());
		name2.setText(hero2.getName());
		list1.clear();
		list2.clear();
		
		for (core.GroupOfUnits u: units1) {
			if (u != null) {
				list1.addItem(u.type.name + "("+u.getNumber()+")");
			}
		}
		
		
		for (core.GroupOfUnits u: units2) {
			if (u != null) {
				list2.addItem(u.type.name + " ("+u.getNumber()+")");
			}
		}
		
		list1.setCurrentRow(0);
		list2.setCurrentRow(0);
	}