jAlbumTree.expandPath(path); jAlbumTree.makeVisible(path);
	public void newAlbum() {		NewAlbumDialog dialog = new NewAlbumDialog(this, getCurrentGallery(), getCurrentAlbum());		final String newAlbumName = dialog.getNewAlbumName();		if (newAlbumName == null) {			return;		}		Log.log(Log.LEVEL_TRACE, MODULE, "Album '" + newAlbumName + "' created.");		// there is probably a better way... this is needed to give the UI time to catch up		// and load the combo up with the reloaded album list		new Thread() {			public void run() {				try {					Thread.sleep(1000);				} catch (InterruptedException e) {					Log.logException(Log.LEVEL_ERROR, MODULE, e);				}				//SwingUtilities.invokeLater(new Runnable() {				//	public void run() {				// todo: none of the calls below seem to have any effect				Log.log(Log.LEVEL_TRACE, MODULE, "Selecting " + newAlbumName);				TreePath path = getCurrentGallery().getPathForAlbum(getCurrentGallery().getAlbumByName(newAlbumName));				jAlbumTree.expandPath(path);				jAlbumTree.makeVisible(path);				jAlbumTree.setSelectionPath(path);				//jAlbumTree.repaint();				//	}				//});			}		}.start();		// We've been modified, we are now dirty.		setDirtyFlag(true);	}