public boolean shouldScroll(int direction)
boolean shouldScroll(int direction)
    public boolean shouldScroll(int direction)    {      int value;      if (scrollbar.getOrientation() == HORIZONTAL)	value = valueForXPosition(currentMouseX);      else	value = valueForYPosition(currentMouseY);      if (thumbRect.contains(currentMouseX, currentMouseY))        return false;            if (direction == POSITIVE_SCROLL)	return (value > scrollbar.getValue());      else	return (value < scrollbar.getValue());    }