java - How can I stop a Thread from GUI button? - Stack ...
2010-12-20u2002·u20023. There is no safe way to force a thread to stop (read the JavaDoc on the Thread.stop () method for more explanation). The best way is to call the interrupt method, which is a 'cooperative' stop. If the thread is in the middle of an interruptible call then it will throw an InterruptedException. If the thread is compute-intensive then it should ...
Get Price