This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.



Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python 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!