tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0);
tickRect.width = slider.getPaintTicks() ? getTickLength() : 0;
  protected void calculateTickRect()  {    if (slider.getOrientation() == JSlider.HORIZONTAL)      {	tickRect.x = trackRect.x;	tickRect.y = trackRect.y + trackRect.height;	tickRect.width = trackRect.width;        tickRect.height = (slider.getPaintTicks() ? getTickLength() : 0);	if (tickRect.y + tickRect.height > contentRect.y + contentRect.height)	  tickRect.height = contentRect.y + contentRect.height - tickRect.y;      }    else      {	tickRect.x = trackRect.x + trackRect.width;	tickRect.y = trackRect.y;        tickRect.width = (slider.getPaintTicks() ? getTickLength() : 0);	tickRect.height = trackRect.height;	if (tickRect.x + tickRect.width > contentRect.x + contentRect.width)	  tickRect.width = contentRect.x + contentRect.width - tickRect.x;      }  }