Article View: borland.public.jbuilder.java.swing
Article #7940Re: JButton in a drag-and-drop operation
From: John McGrath TeamB
Date: Thu, 30 Nov 2000 00:00
Date: Thu, 30 Nov 2000 00:00
25 lines
1342 bytes
1342 bytes
On Mon, 27 Nov 2000 10:48:51 -0500, Philippe Trottier wrote:
> What i meant by the double-click is ignored is that whenever
> the user double-clicks on one of my DnDButtons, the only
> event reported is a single-click event. It's as though the
> single-click event takes precedence over the double-click.
What do you mean by "reported"? Do you mean your listener is notified?
Try adding this method to your button class. You should see each event
that the button receives.
protected void processEvent( AWTEvent event ) {
System.out.println( event );
super.processEvent( event );
}
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.148fd4a3e488df989d74@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3a1d7ca4$1_2@dnews> <MPG.148aba4544665989d62@forums.borland.com> <3a228269$1_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 From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: JButton in a drag-and-drop operation Date: 2000/11/30 Message-ID: <MPG.148fd4a3e488df989d74@forums.borland.com> X-Deja-AN: 699487784 References: <3a1d7ca4$1_2@dnews> <MPG.148aba4544665989d62@forums.borland.com> <3a228269$1_2@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing