return getPreferredSize(c);
Insets insets = c.getInsets(); Dimension ret; int orientation = progressBar.getOrientation(); if (orientation == JProgressBar.VERTICAL) { ret = getPreferredInnerVertical(); ret.height = 10; ret.width += insets.left + insets.right; } else { ret = getPreferredInnerHorizontal(); ret.width = 10; ret.height += insets.top + insets.bottom; } return ret;
  public Dimension getMinimumSize(JComponent c)  {    return getPreferredSize(c);  }