String alias = jAlias.getText().trim(); gallery.setAlias(alias.length() == 0?null:alias);
	public void readUIState() {		gallery.setUsername(jUsername.getText());		gallery.setPassword(jPassword.getText());		gallery.setType(jType.getSelectedIndex());		gallery.setStUrlString(jStandaloneUrl.getText());		gallery.setPnLoginUrlString(jPnLoginUrl.getText());		gallery.setPnGalleryUrlString(jPnGalleryUrl.getText());		gallery.setPhpnLoginUrlString(jPhpnLoginUrl.getText());		gallery.setPhpnGalleryUrlString(jPhpnGalleryUrl.getText());	}