private void updateComboBoxes() {
		int tempindexleft,tempindexright;
		
		for(int i=0; i<15;++i) {
			tempindexleft=CBLeftList.get(i).getSelectedIndex();		// get all selected indexes
			tempindexright=CBRightList.get(i).getSelectedIndex();
			CBLeftList.get(i).removeAllItems();						// delete all entries
			CBRightList.get(i).removeAllItems();
			for(Player p : UpDown.getAllPlayer()) {					// add all entries
				CBLeftList.get(i).addItem(p.getName());
				CBRightList.get(i).addItem(p.getName());
			}
			if (UpDown.getNumPlayers()==5 && i>=10)
				break;
			if (!sizeswitched) {									// set to previous selection unless size changed
				CBLeftList.get(i).setSelectedIndex(tempindexleft);
				CBRightList.get(i).setSelectedIndex(tempindexright);
			}
			else if (UpDown.getNumPlayers()==5) {
				CBLeftList.get(i).setSelectedIndex(defaultfiveman[i*2]);
				CBRightList.get(i).setSelectedIndex(defaultfiveman[(i*2)+1]);
				resetSelection();
			}
			else if (UpDown.getNumPlayers()==6) {
				CBLeftList.get(i).setSelectedIndex(defaultsixman[i*2]);
				CBRightList.get(i).setSelectedIndex(defaultsixman[(i*2)+1]);
				resetSelection();
			}
		}
	}