how to handle doubleclick mouse event in java

i want to handle double click mouse event in java i use getClickCount() function but i want that on onetime click show othere windowsand on doubleclick show diif. windowbut problem is that onetime is occuer always if u click doubleclick
[271 byte] By [sanjaygarothayaa] at [2007-10-2 0:32:19]
# 1
Do you mean that even after using the getClickCount() ,when you double click it is only registred as single click?
qwerty987654a at 2007-7-15 16:46:47 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 2
Maybe post some code so we can see what, if anything, you are doing wrong.Examing the results of a call to getClickCount() is the correct way to detect a double click.
mjparmea at 2007-7-15 16:46:47 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...