}
    public void mousePressed(MouseEvent e)    {      currentMouseX = e.getX();      currentMouseY = e.getY();      int value;      if (slider.getOrientation() == JSlider.HORIZONTAL)	value = valueForXPosition(currentMouseX);      else	value = valueForYPosition(currentMouseY);      if (slider.getSnapToTicks())	value = findClosestTick(value);      // If the thumb is hit, then we don't need to set the timers to move it.       if (! thumbRect.contains(e.getPoint()))        {	  // The mouse has hit some other part of the slider.	  // The value moves no matter where in the slider you hit.	  if (value > slider.getValue())	    scrollDueToClickInTrack(POSITIVE_SCROLL);	  else	    scrollDueToClickInTrack(NEGATIVE_SCROLL);        }      else        {	  slider.setValueIsAdjusting(true);	  offset = value - slider.getValue();        }    }