question: private static void attachTo ( JSlider c ) { MouseMotionListener [ ] listeners = c . getMouseMotionListeners ( ) ; for ( MouseMotionListener m : listeners ) { if ( m instanceof TrackListener ) { c . removeMouseMotionListener ( m ) ; SnapListener listen = new SnapListener ( m , ( BasicSliderUI ) c . getUI ( ) , c ) ; c . addMouseMotionListener ( listen ) ; c . addMouseListener ( listen ) ; c . addPropertyChangeListener ( "UI" , listen ) ; } } }
target:  Called to attach mouse listeners to the JSlider