Possible Duplicate:
Count how many times a JButton is pressed?
Suppose i have a button like
JButton button1=new JButton();
and i have a int count=0
what is the code to find how many times the button is clicked??
(it is something similar to mouseup event in C# but i want it in java)
Thankyou
Where
counthas to be an Instance Variable and is declared just right after your class.