0

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)
    .
    .

           }
    }         
2
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by stultuske
0

Don't bother to answer.
Solved anyways....
This forum is good for nothing
Only TROLLS

1

only trolls? is that why you are on it?
has it occured to you that maybe nobody replied because you're description was way to vague?

my guess, starting a thread which is defined in the main class, and pausing or stopping it when clicking it on the second button.

do understand, we are not online 24/7. we do have lives, even jobs, the most of us, or studies. just because you don't get an immediate answer, or sometimes no answer at all, doesn't mean nobody wants to help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.