Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Double click event.  RSS feed

 
Chandan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m trying to write a code which creates a ToggleButton which has a MouseClickEvent. I want both single click & double click event on the button.I can get clicks using click count.
But whenever i double click on the button, it first calls the single click event for the first click & then the single click,
which results in wrong output.
Please help me.....How can i handle both single as well as double click event on the same button.
Thanx in advance.
Chandan D.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandan,
Give the code below a look.

Regards,
Manfred.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"chandan"
your name does not follow the javaranch guidelines.
please take a moment and re-register after you read
the foll. guidelines http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!