mf.updateProgressValue(pId, loaded, loaded + toLoad.size());
mf.jStatusBar.updateProgressValue(StatusUpdate.LEVEL_CACHE, loaded, loaded + toLoad.size());
	public void run() {		Thread.yield();		int loaded = 0;		int pId = mf.startProgress(0, toLoad.size(), "Loading thumbnails", false);		//Log.log(Log.TRACE, MODULE, "Starting " + iFilename);		while ( !toLoad.isEmpty() ) {			String filename = (String) toLoad.pop();			if ( ! thumbnails.containsKey( filename ) ) {				ImageIcon i = ImageUtils.load(					filename, 					GalleryRemote.getInstance().properties.getThumbnailSize(), 					ImageUtils.THUMB );				thumbnails.put( filename, i );								loaded++;								Log.log(Log.TRACE, MODULE, "update progress " + loaded + "/" + (loaded + toLoad.size()));				mf.updateProgressValue(pId, loaded, loaded + toLoad.size());				mf.thumbnailLoadedNotify();			}		}		stillRunning = false;				mf.stopProgress(pId, "Thumbnails loaded");		//Log.log(Log.TRACE, MODULE, "Ending");	}