Hello,
I am currently struck! I need a way to stop an already ongoing process by a button, using another button.
Explanation:-
1st Button Action
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
.
.
some actions which is a ongoing running (for ex: timer countdown)
.
.
}
2nd Button Action
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
.
.
Stop the action of button 1 (like stop the timer created by button 1)
.
.
}
}