jModify.setEnabled(true); jDelete.setEnabled(true);
jModify.setEnabled(false); jDelete.setEnabled(false);
	public void resetUIState() {		Gallery selectedGallery = (Gallery) jGalleries.getSelectedValue();		StringBuffer sb = new StringBuffer();		if (selectedGallery != null) {			sb.append("<HTML>");			if (selectedGallery.getType() == Gallery.TYPE_STANDALONE) {				sb.append(GRI18n.getString(MODULE, "gllryURL")).append(selectedGallery.getStUrlString()).append("<br>");			} else if (selectedGallery.getType() == Gallery.TYPE_POSTNUKE) {				sb.append(GRI18n.getString(MODULE, "pnLoginURL")).append(selectedGallery.getPnLoginUrlString()).append("<br>");				sb.append(GRI18n.getString(MODULE, "pnGllryURL")).append(selectedGallery.getPnGalleryUrlString()).append("<br>");			} else if (selectedGallery.getType() == Gallery.TYPE_PHPNUKE) {				sb.append(GRI18n.getString(MODULE, "phpnLoginURL")).append(selectedGallery.getPhpnLoginUrlString()).append("<br>");				sb.append(GRI18n.getString(MODULE, "phpnGllryURL")).append(selectedGallery.getPhpnGalleryUrlString()).append("<br>");			}			String username = selectedGallery.getUsername();			if (username == null || username.length() == 0) {				username = "&lt;Not set&gt;";			}			sb.append(GRI18n.getString(MODULE, "username")).append(username).append("<br>");			sb.append("</HTML>");			jModify.setEnabled(true);			jDelete.setEnabled(true);		} else {			jModify.setEnabled(true);			jDelete.setEnabled(true);		}		jDetails.setText(sb.toString());	}