Article View: borland.public.jbuilder.java.swing
Article #375Re: Is there Doubleclick event or listener?
From: Pax
Date: Tue, 04 Oct 2005 09:18
Date: Tue, 04 Oct 2005 09:18
34 lines
2215 bytes
2215 bytes
>> I have tried to find an implementation for detecting a doubleclick in >> JBuilder2005 without succes. > > Double-clicking is a condition that you can test for > when handling a mouse event. So yes, JBuilder assists > you in writing the stub of the mouse handling code, but > it's up to you to test for a double-click by writing > code inside the mouse event handler which JBuilder > creates for you in the Designer. > > Google: > > +mouse +"double-click" +java > > Here's one of the better hits: > > http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html > Thank You Paul! I got that to work all right, but... When I implement it on a tableframe, the second click drowns, because cliking a tableframe has a build in handler that changes the clicked cell to edit mode. Why is the event drowned in Java and not sent on to the next level in the hieracy? In Delphi events boubles up and can be catched on any level, but in Java they seem to die once they are catched. Do I need to study event handling in Java harder, or is there a trick to send the event on? Peder
Technical Details
Message-ID:
<4342487b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<433cef44$1@newsgroups.borland.com> <433d4245$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,7918880dea3b7bfe X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pax" <2mailmeusepax@paxitdotdk> Newsgroups: borland.public.jbuilder.java.swing References: <433cef44$1@newsgroups.borland.com> <433d4245$1@newsgroups.borland.com> Subject: Re: Is there Doubleclick event or listener? Date: Tue, 4 Oct 2005 11:18:49 +0200 Lines: 36 Organization: Sk๏ฟฝnning X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.147.241.3 Message-ID: <4342487b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128417403 82.147.241.3 (4 Oct 2005 02:16:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail