} else { jAlbumTree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode()));
	private void selectedGalleryChanged() {		Gallery currentGallery = getCurrentGallery();		Log.log(Log.LEVEL_TRACE, MODULE, "updateGalleryParams: current gallery: " + currentGallery);		if (currentGallery != null /*&& jAlbumTree.getModel() != currentGallery*/) {			jAlbumTree.setModel(currentGallery);			//currentGallery.addListDataListener(this);		}		if (currentGallery == null || currentGallery.getRoot() == null) {			jAlbumTree.setEnabled(false);			jPicturesList.setEnabled(false);		} else {			jAlbumTree.setEnabled(!inProgress);		}		updatePicturesList();	}