• Post Reply Bookmark Topic Watch Topic
  • New Topic

how a double-click is been recognized?

 
Akshay Kumar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
though the method getClickCount() returns the number of mouse clicks associated with the MouseEvent, how it decides it as double-click?
is there any time based mechanism to calculate it, such as the maximum time elapsed between two clicks?
plz, post ur ideas/explanations in a step of further explaining it, in detail.
thank u.
 
Minal Shah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Ya there is getClickCount() method in MouseEvent. You can determine no of clicks through this method
if(mouseEvent.getClickCount() == 2)
statements

Minal Shah
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!