thumbRect.x = trackRect.x;
thumbRect.x = trackRect.x + 1;
  protected void calculateThumbLocation()  {    int value = slider.getValue();    if (slider.getOrientation() == JSlider.HORIZONTAL)      {	thumbRect.x = xPositionForValue(value) - thumbRect.width / 2;	thumbRect.y = trackRect.y;      }    else      {	thumbRect.x = trackRect.x;	thumbRect.y = yPositionForValue(value) - thumbRect.height / 2;      }  }