void (MouseEvent event) { if (myScrollBar == null || !myScrollBar.isEnabled()) return; if (myThumb.bounds.isEmpty() || SwingUtilities.isRightMouseButton(event)) return; if (isDragging) { setValueFrom(event); } else { myMouseX = event.getX(); myMouseY = event.getY(); updateMouse(myMouseX, myMouseY); startScrollTimerIfNecessary(); } }