if (progressBar.isBorderPainted()) progressBar.getBorder().paintBorder(progressBar, g, 0, 0, progressBar.getWidth(), progressBar.getHeight());
  public void paint(Graphics g, JComponent c)  {    if (! progressBar.isIndeterminate())      paintDeterminate(g, c);    else      paintIndeterminate(g, c);          if (progressBar.isBorderPainted())      progressBar.getBorder().paintBorder(progressBar, g, 0, 0,                                          progressBar.getWidth(),					  progressBar.getHeight());  }