public void incrementAnimationIndex()
protected void incrementAnimationIndex()
  public void incrementAnimationIndex()  {    animationIndex++;    //numFrames is like string length, it should be named numFrames or something    if (animationIndex >= numFrames)      animationIndex = 0;    progressBar.repaint();  }