if (progressBar.isIndeterminate()) startAnimationTimer();
  public void installUI(JComponent c)  {    super.installUI(c);    if (c instanceof JProgressBar)      {	progressBar = (JProgressBar) c;	animationTimer = new Timer(200, null);	animationTimer.setRepeats(true);	installDefaults();	installListeners();      }  }