Distinguishing between single and double mouse clicks
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_Rome
Posted On:   Thursday, August 1, 2002 05:54 PM

Yes, I know event.getClickCount() gives me the number of clicks, but my

mouseClicked(MouseEvent e)

seems to get called on both clicks of a double click. I want to do different things on single and double clicks.


How can I distinguish between them?

Re: Distinguishing between single and double mouse clicks

Posted By:   George_Tzallas  
Posted On:   Monday, August 5, 2002 02:41 AM

Well, why don't you get the time interval between clicks, and if it is above a threshold that you
define then do whatever you would for a double click, otherwise interpret it as single click.


Just an idea.


Regards


George T

About | Sitemap | Contact