void setStateOfComboBox(JComboBox cb, int index) {

		Action a = cb.getAction();
		ActionListener[] al = cb.getActionListeners();
		ItemListener[] il = cb.getItemListeners();

		cb.setAction(null);
		if (al != null) {
			for (ActionListener x : al)
				cb.removeActionListener(x);
		}
		if (il != null) {
			for (ItemListener x : il)
				cb.removeItemListener(x);
		}

		cb.setSelectedIndex(index);

		cb.setAction(a);
		if (al != null) {
			for (ActionListener x : al)
				cb.addActionListener(x);
		}
		if (il != null) {
			for (ItemListener x : il)
				cb.addItemListener(x);
		}

	}