File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes SwingWorker interrupt method not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SwingWorker interrupt method not working" Watch "SwingWorker interrupt method not working" New topic

SwingWorker interrupt method not working

Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
I am using the SwingWorker class for managing threads in my Swing app. While the worker thread is running I want to interrupt it based on a button click (user input). However the worker runs uninterrupted! How do I interrupt the worker?
[ May 09, 2002: Message edited by: Raghav Sam ]

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.<br />- Dr. Seuss
I agree. Here's the link:
subject: SwingWorker interrupt method not working
Similar Threads
Removing threads from my thread pool
Swing process won't die
Would you use SwingWorker in an applet? Problem with Java 1.5 browser plugin
Swing appears to Freeze
Gui refresh