return getPreferredHorizontalSize();
{  int height = getThumbSize().height;  if (slider.getPaintTicks() && slider.getMajorTickSpacing() > 0 || slider.getMinorTickSpacing() > 0) height += getTickLength();  if (slider.getPaintLabels()) height += getHeightOfTallestLabel();  height += insets.top + insets.bottom + focusInsets.top + focusInsets.bottom;  return new Dimension(32767, height); }
  public Dimension getMaximumSize(JComponent c)  {    if (slider.getOrientation() == JSlider.HORIZONTAL)      return getPreferredHorizontalSize();    else      return getPreferredVerticalSize();  }