> Sun's Swing tutorial section titled "How to Use Scroll Panes" states this
> about dragging and autoscrolls:
>
> "Setting the autoscrolls property to true makes the component fire
> synthetic mouse-dragged events even when the mouse isn't moving (because it
> stopped, mid-drag, outside the component)."
"An autoscrolling gesture is initiated by the user by keeping the drag
cursor motionless with a border region of the Component, referred to as the
"autoscrolling region", for a predefined period of time, this will result in
repeated scroll requests to the Component until the drag Cursor resumes its
motion."
"public boolean getAutoscrolls()
Returns true if this component automatically scrolls its contents when
dragged (when contained in a component that supports scrolling, like
JViewport)."
> I'd like to duplicate this behavior, but instead of the events being
> triggered by mouse dragging, have them triggered by mouse moving. Any ideas
> on how to do this? (Simply calling mouseDragged() from mouseMoved() does
> not duplicate the behavior)
where is your example?
--
____________
http://reader.imagero.com the best java image reader.