code: public void itemStateChanged(ItemEvent iEvt) {
  		String item = (String) iEvt.getItem();
  		int i;
  
  		for (i = 0; i < localeCount; i++) {
  			if (locales[i].getDisplayName().equals(item))
  				break;
  		}
  		setLocale(locales[i], false);
  	}
docs: The ItemListener for the locales.