Detecting double click with MouseListener

From: Jacob (jacob_at_yahoo.com)
Date: 08/31/04


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.



Relevant Pages

  • Re: Detecting double click with MouseListener
    ... Jacob wrote: ... > interface and inspect the event.getClickCount. ... With a standard setup ... > classify the event. ...
    (comp.lang.java.programmer)
  • RE: policy based routing question
    ... the type of traffic associated with a packet. ... I know iptables/mark + ip ... for your primary interface and mark 0x02 for your secondary interface and ... interests are (classify by source IP address? ...
    (Fedora)