🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2689

mouse motion with drag 'n drop

#2689
From: Joe Fessler
Date: Mon, 05 Jun 2000 00:00
18 lines
1242 bytes
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 wrapped object from component
to component, and using mousemotionlistener I can physically reposition
the extended JButton(s) 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: <393BC100.87AF3EB7@idir.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,7648534fe4fd6be3,start
X-Google-Attributes: gid1089d0,public
From: Joe Fessler <jfessler@idir.net>
Subject: mouse motion with drag 'n drop
Date: 2000/06/05
Message-ID: <393BC100.87AF3EB7@idir.net>
X-Deja-AN: 631306253
Content-Transfer-Encoding: 7bit
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=us-ascii
X-Trace: 5 Jun 2000 07:59:14 -0800, 209.172.222.134
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api