Question #596

How to set a click counter on JButton?

Expert's answer

You have to create a variable-counter and add a «MouseListener» to the button and increment the counter each time you call a method «mouseClicked».
LATEST TUTORIALS
APPROVED BY CLIENTS