if ( getCurrentAlbum() == null) { jPictureInspector.setPictures( null );  setStatus( "Select a Gallery URL and click Log in..." ); } else if ( getCurrentAlbum().sizePictures() > 0 ) { jPictureInspector.setPictures( jPicturesList.getSelectedValues() );  int selN = jPicturesList.getSelectedIndices().length;  if ( sel == -1 ) { setStatus( getCurrentAlbum().sizePictures() + " pictures / " + NumberFormat.getInstance().format( ( (int) getCurrentAlbum().getPictureFileSize() / 1024 ) ) + " K" ); } else { setStatus( "Selected " + selN + ((selN == 1)?" picture / ":" pictures / ") + NumberFormat.getInstance().format( ( (int) getCurrentAlbum().getObjectFileSize( jPicturesList.getSelectedValues() ) / 1024 ) ) + " K" ); } } else { jPictureInspector.setPictures( null );  setStatus( "No selection" ); } }});
				public void run() {					boolean forward = true;					while (! interrupted() ) {						if (jProgress.getValue() >= jProgress.getMaximum()) {							forward = false;						} else if (jProgress.getValue() <= jProgress.getMinimum()) {							forward = true;						}						updateProgressValue(progressId, jProgress.getValue() + (forward?1:-1));						try {							sleep(500);						} catch (InterruptedException e) {}					}				}