🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7754

Re: JButton in a drag-and-drop operation

#7754
From: John McGrath TeamB
Date: Tue, 12 Dec 2000 14:35
27 lines
1987 bytes
On Mon, 11 Dec 2000 13:07:23 -0500, Philippe Trottier wrote:

> I overloaded the processEvent method as you suggested and
> the output is what i expected:

I see a number of MOUSE_ENTERED and MOUSE_EXITED events mixed in there 
with the MOUSE_PRESSED, MOUSE_RELEASED, and MOUSE_CLICKED events.

Are you just clicking on the button?  If so, then it is my guess that 
the Drag & Drop code is being activated and affecting the button in 
such a way that the click count is being reset.

You might try to customize the DragGestureRecognizer so that it does 
not kick in so easily.  I have never done this, but it seems likely 
that is where the problem is.  

You might want to first try removing the DragGestureRecognizer to see 
if the double clicks work properly without it.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.149ffb07df544583989db0@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeed.skycache.com!Cidera!portc03.blue.aol.com!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
References: <3a1d7ca4$1_2@dnews> <MPG.148aba4544665989d62@forums.borland.com> <3a228269$1_2@dnews> <MPG.148fd4a3e488df989d74@forums.borland.com> <3a2ff0c5_2@dnews> <MPG.149a712aca1fb358989da0@forums.borland.com> <3a3517e2_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,9e92e48dd1c15db7
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-12-12 06:37:10 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeed.skycache.com!Cidera!portc03.blue.aol.com!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JButton in a drag-and-drop operation
Date: Tue, 12 Dec 2000 09:35:10 -0500
Organization: Another Netscape Collabra Server User
Lines: 27
Message-ID: <MPG.149ffb07df544583989db0@forums.borland.com>
References: <3a1d7ca4$1_2@dnews> <MPG.148aba4544665989d62@forums.borland.com> <3a228269$1_2@dnews> <MPG.148fd4a3e488df989d74@forums.borland.com> <3a2ff0c5_2@dnews> <MPG.149a712aca1fb358989da0@forums.borland.com> <3a3517e2_2@dnews>
NNTP-Posting-Host: dslcv1-60.fast.net
X-Newsreader: MicroPlanet Gravity v2.30