I want to keep executing work while a button is pressed, using Java. When the button is released, the work should stop. Something like this:
Button_is_presse
I want to keep executing work while a button is pressed
Execute that process in another thread and then your form is not block and you can press the button to cancel or stop the execution.
see :