GalleryRemote.getInstance().properties.getProperty(GR_LOCALE)));
GalleryRemote.getInstance().properties.getProperty(UI_LOCALE)));
	public void readProperties(GalleryProperties props) {		showThumbnails.setSelected(props.getBooleanProperty(SHOW_THUMBNAILS));		thumbnailWidth.setText("" + (int) props.getDimensionProperty(THUMBNAIL_SIZE).getWidth());		thumbnailHeight.setText("" + (int) props.getDimensionProperty(THUMBNAIL_SIZE).getHeight());		savePasswords.setSelected(props.getBooleanProperty(SAVE_PASSWORDS));		logLevel.setSelectedIndex(props.getIntProperty(LOG_LEVEL));		updateCheck.setSelected(props.getBooleanProperty(UPDATE_CHECK));		updateCheckBeta.setSelected(props.getBooleanProperty(UPDATE_CHECK_BETA));		locales = GRI18n.getAvailableLocales();		Vector localeStrings = new Vector();		Iterator it = locales.iterator();		while (it.hasNext()) {			Locale l = (Locale) it.next();			StringBuffer localeDisplay = new StringBuffer(l.getDisplayLanguage(grRes.getCurrentLocale()));			if (l.getCountry() != null && l.getCountry().length() > 0) {				localeDisplay.append(" (").append(l.getDisplayCountry(grRes.getCurrentLocale()));				if (l.getVariant() != null && l.getVariant().length() > 0) {					localeDisplay.append(", ").append(l.getDisplayVariant(grRes.getCurrentLocale()));				}				localeDisplay.append(")");			}			localeStrings.add(localeDisplay.toString());		}		int selectedLocale = locales.indexOf(GRI18n.parseLocaleString(				GalleryRemote.getInstance().properties.getProperty(GR_LOCALE)));		if (selectedLocale == -1) {			localeStrings.add(0, "Default");			selectedLocale = 0;			defaultLocale = true;		}		jLocale.setModel(new DefaultComboBoxModel(localeStrings));		jLocale.setSelectedIndex(selectedLocale);	}