return (slider.getOrientation() == JSlider.HORIZONTAL ? tickRect.width : tickRect.height);
return slider.getOrientation() == JSlider.HORIZONTAL ? tickRect.width : tickRect.height;
  protected int getTrackLength()  {    return (slider.getOrientation() == JSlider.HORIZONTAL             ? tickRect.width : tickRect.height);  }