Rod Singh wrote:
Replace the mouseClicked() method, which is in the previous posting with the one given below.
The "increment", and the "reset" is handled in the mouseClicked() method. As per the code-- from my previous posting-- this event handler method is attached with both the buttons.
That being stated, when the button labeled as "increment" is clicked-- the count is creased by 1, and the text field is set with the new value of the count. On the other hand, when the button labeled as "reset" is clicked--the count is reset to 1, and the text field is reset to zero length string--a blank.
I hope you understood it.
yeah, fair enough=) Thank you by the way!=)