🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JButton in a drag-and-drop operation

#7752
From: Philippe Trottier
Date: Mon, 11 Dec 2000 18:07
73 lines
3919 bytes
I overloaded the processEvent method as you suggested and the output is what
i expected:

java.awt.event.MouseEvent[MOUSE_ENTERED,(33,40),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_EXITED,(21,202),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_ENTERED,(38,27),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(20,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_RELEASED,(20,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_CLICKED,(20,24),mods=16,clickCount=1] on
10.1.1.5
Click count is : 1
java.awt.event.MouseEvent[MOUSE_EXITED,(257,106),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_ENTERED,(24,41),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_EXITED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_ENTERED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_RELEASED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(18,24),mods=16,clickCount=2] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_RELEASED,(18,24),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_CLICKED,(18,24),mods=16,clickCount=1] on
10.1.1.5
Click count is : 1

java.awt.event.MouseEvent[MOUSE_ENTERED,(31,38),mods=0,clickCount=0] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(26,27),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_EXITED,(26,27),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_ENTERED,(26,27),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_RELEASED,(26,27),mods=16,clickCount=1] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_PRESSED,(26,27),mods=16,clickCount=2] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_RELEASED,(26,27),mods=16,clickCount=2] on
10.1.1.5
java.awt.event.MouseEvent[MOUSE_CLICKED,(26,27),mods=16,clickCount=2] on
10.1.1.5
Click count is : 2
Basically, i get the first block of outputs 9 out of 10 times. I "Click
count is : X" line was added to the mouseClicked(MouseEvent e) method of my
MouseListener (added to my JButtons).

"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.149a712aca1fb358989da0@forums.borland.com...
> On Thu, 7 Dec 2000 15:19:07 -0500, Philippe Trottier wrote:
>
> Did you do what I suggested?
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3a3517e2_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!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>

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-11 10:09:09 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>
Subject: Re: JButton in a drag-and-drop operation
Date: Mon, 11 Dec 2000 13:07:23 -0500
Lines: 76
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: <3a3517e2_2@dnews>
X-Trace: 11 Dec 2000 10:07:30 -0800, 216.191.3.122
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!216.191.3.122