• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Double click event.

 
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.
 
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.
 
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
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!