Hi,
Can I use Thread.stop()  to cancel a SwingWorker running task forcely? Though 
the stop method is documented as deprecated in JDK doc. My thought is, first 
store the thread in doInBackground, then force stop the thread by invoking 
thread.stop() later.

The purpose is to guarantee to always stop the task within specified 
seconds(for example 20s). For some tasks, we can not achieve this goal using 
approaches, such as checking cancel flag or SwingWorker.cancel(true).


Thanks and Best Regards,
Xmly






Reply via email to