🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JButton in a drag-and-drop operation

#7755
From: Philippe Trottier
Date: Wed, 13 Dec 2000 16:09
33 lines
2361 bytes
I'll try this shortly and will keep you posted.

Thanks for your help.

"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.149ffb07df544583989db0@forums.borland.com...
> 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: <3a379f4f$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!216.191.3.122
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> <MPG.149ffb07df544583989db0@forums.borland.com>

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-13 08:11:01 PST
From: "Philippe Trottier" <philippe.trottier@simplernetworks.com>
Newsgroups: borland.public.jbuilder.java.swing
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> <MPG.149ffb07df544583989db0@forums.borland.com>
Subject: Re: JButton in a drag-and-drop operation
Date: Wed, 13 Dec 2000 11:09:39 -0500
Lines: 35
Organization: Simpler Networks Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 216.191.3.122
Message-ID: <3a379f4f$1_2@dnews>
X-Trace: 13 Dec 2000 08:09:51 -0800, 216.191.3.122
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!216.191.3.122