Article View: borland.public.jbuilder.java.api
Article #2702Re: mouse motion with drag 'n drop
From: Joe Fessler
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
29 lines
1960 bytes
1960 bytes
Well, that would seem to be the predicament. I would prefer not to require use of the shift/alt/ctrl keys or even the use of a right mouse key, yet something has to distinguish the intent of the action. Currently the gesturerecognizer is initialized with DnDConstants.ACTION_MOVE but my code actually performs as a copy. If I set things to recognize another action, I'll still have to get the decision from the user as to which one to use. It would prevent the overhead of having to toggle the listeners, though it would mean that the JPanel has to be a drop target and the buttons themselves would have to be transferable - all that just to reposition the component on the screen. Nobody rides for free. Any other options spring to mind? -J "John P. McGrath" wrote: > > I am beginning to understand. The problem is that the same gesture (in > DnD terminology) is initiating both the move button code and the drag- > and-drop transfer of the transferrable object. What gesture are you > trying to use for each operation? > > -- > John P. McGrath > <JPMcGrath@fast.net> > <jpm@nscs.fast.net>
Technical Details
Message-ID:
<39419A1C.5B65F12E@idir.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393BC100.87AF3EB7@idir.net> <MPG.13a63b62a555a9e989990@forums.borland.com> <393D290C.ED9F9FC7@idir.net> <MPG.13a78d40c337c857989996@forums.borland.com> <393EA00B.15A48652@idir.net> <MPG.13a8d828c4806f119899a0@forums.borland.com> <393FB8D4.6C3B47E0@idir.net> <MPG.13aa425b296d87de9899aa@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,7648534fe4fd6be3 X-Google-Attributes: gid1089d0,public From: Joe Fessler <jfessler@idir.net> Subject: Re: mouse motion with drag 'n drop Date: 2000/06/09 Message-ID: <39419A1C.5B65F12E@idir.net> X-Deja-AN: 633271693 Content-Transfer-Encoding: 7bit References: <393BC100.87AF3EB7@idir.net> <MPG.13a63b62a555a9e989990@forums.borland.com> <393D290C.ED9F9FC7@idir.net> <MPG.13a78d40c337c857989996@forums.borland.com> <393EA00B.15A48652@idir.net> <MPG.13a8d828c4806f119899a0@forums.borland.com> <393FB8D4.6C3B47E0@idir.net> <MPG.13aa425b296d87de9899aa@forums.borland.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Trace: 9 Jun 2000 18:27:31 -0800, 209.242.111.45 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api