Article View: borland.public.jbuilder.java.swing
Article #44mouse motion vs. dnd
From: Joe Fessler
Date: Thu, 01 Jun 2000 00:00
Date: Thu, 01 Jun 2000 00:00
21 lines
1419 bytes
1419 bytes
Apologies for the cross-posting, but I'm not sure where this message belongs. Can anyone offer a strategy to incorporate drag and drop with a mousemotionlistener for the same component? To rephrase and explain, I'm using an extension of JButton which wraps another object. Using dnd, I can move the object from place to place, and using mousemotionlistener I can physically reposition the extended JButton in the JPanel. My efforts to combine the two operations have not been too successful. It seems that the motionlistener grabs the first few motion events and then the dnd listeners kick in. This effect makes perfect sense, but I'm looking for a way to implement both pieces of functionality. Any solutions/work arounds will be appreciated. -- Regards, -Joe
Technical Details
Message-ID:
<39371591.6129E22B@idir.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4a86364a2a7bddd0,start X-Google-Attributes: gid111d45,public X-Google-Thread: f74b3,4a86364a2a7bddd0,start X-Google-Attributes: gidf74b3,public From: Joe Fessler <jfessler@idir.net> Subject: mouse motion vs. dnd Date: 2000/06/01 Message-ID: <39371591.6129E22B@idir.net> X-Deja-AN: 630080120 Content-Transfer-Encoding: 7bit X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Trace: 1 Jun 2000 18:58:58 -0800, 209.242.111.52 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.java.language