return getPreferredVerticalSize();
return getMinimumVerticalSize();
  public Dimension getMinimumSize(JComponent c)  {    if (slider.getOrientation() == JSlider.HORIZONTAL)      return getPreferredHorizontalSize();    else      return getPreferredVerticalSize();  }