How to make the actionPerformed be executed till the next Button click

Printable View