Detecting double click with MouseListener
From: Jacob (jacob_at_yahoo.com)
Date: 08/31/04
- Next message: Tor Iver Wilhelmsen: "Re: ATDT 123456789 How??"
- Previous message: staff: "PrintJob.setName() equivalent in DocPrintJob"
- Next in thread: John: "Re: Detecting double click with MouseListener"
- Reply: John: "Re: Detecting double click with MouseListener"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 31 Aug 2004 10:03:47 +0200
I can detect a docuble click using the MouseListener
interface and inspect the event.getClickCount().
However, at that point in time, the event has already
been classified as a single click (as the clickCount
is 1 the first time around).
My intention is to start action A on a single click
and action B on a double click. With a standard setup
I will get action A on a single click but action A + B
on a double click!
Seems like a delay is necessary in order to fully
classify the event. Is there a standard way to acheive
this?
Thanks.
- Next message: Tor Iver Wilhelmsen: "Re: ATDT 123456789 How??"
- Previous message: staff: "PrintJob.setName() equivalent in DocPrintJob"
- Next in thread: John: "Re: Detecting double click with MouseListener"
- Reply: John: "Re: Detecting double click with MouseListener"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|