code: public void setStatusBar(StatusBar statusBar) {
  		if (statusBar==this.statusBar) return;
  		if (statusBar.getImageViewer()!=null)
  			throw new IllegalArgumentException("Status bar already added to an image viewer");
  		StatusBar oldStatusBar=this.statusBar;
  		if (oldStatusBar!=null) {
  			panel.remove(oldStatusBar.getComponent());
  			oldStatusBar.setImageViewer(null);
  		}
  		this.statusBar=statusBar;
  		if (this.statusBar!=null) {
  			this.statusBar.setImageViewer(this);
  			if (statusBarVisible) {
  				panel.add(this.statusBar.getComponent(), BorderLayout.SOUTH);
  				panel.revalidate();
  				panel.repaint();
  			}
  		}
  		propertyChangeSupport.firePropertyChange("statusBar", oldStatusBar, statusBar);
  	}
docs: Sets the status bar component for this image viewer. The new status bar is made
  visible only if the statusBarVisible property is true. If <code>statusBar</code> is
  <code>null</code> this method removes any existing status bar.
  @param statusBar the new status bar component to set
  @throws IllegalArgumentException if the status bar has already been added to a
  different image viewer