Article View: borland.public.jbuilder.java.swing
Article #1047Simulated Mouse Drags
From: Mike Whittemore
Date: Tue, 20 Apr 2004 03:50
Date: Tue, 20 Apr 2004 03:50
12 lines
1476 bytes
1476 bytes
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)." 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) Thanks, Mike
Technical Details
Message-ID:
<opr6qkx4izvt60do@news.west.cox.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!p01!fed1read06.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,db94a0f8a5b7211d,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-04-19 20:50:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!p01!fed1read06.POSTED!not-for-mail Content-Type: text/plain; charset=iso-8859-15; format=flowed Newsgroups: borland.public.jbuilder.java.swing Subject: Simulated Mouse Drags From: Mike Whittemore <mikewhit@cox.net> MIME-Version: 1.0 Message-ID: <opr6qkx4izvt60do@news.west.cox.net> User-Agent: Opera7.11/Win32 M2 build 2887 Lines: 12 Date: Mon, 19 Apr 2004 20:50:18 -0700 NNTP-Posting-Host: 68.107.113.95 X-Complaints-To: abuse@cox.net X-Trace: fed1read06 1082433019 68.107.113.95 (Mon, 19 Apr 2004 23:50:19 EDT) NNTP-Posting-Date: Mon, 19 Apr 2004 23:50:19 EDT Organization: Cox Communications