return new Dimension(vr.width, vr.height);
int stringHeight = 0; if (str != null) stringHeight = fm.getHeight(); int prefWidth = Math.max(16 - i.top - i.bottom, stringHeight);  return new Dimension(prefWidth, prefHeight);
  protected Dimension getPreferredInnerVertical()  {    Rectangle vr = new Rectangle();    SwingUtilities.calculateInnerArea(progressBar, vr);    return new Dimension(vr.width, vr.height);  }