I have a custom JDialog that pops up when my SwingWorker thread fires up. The dialog just has a JProgressbar and a Button (cancel button). I am trying to figure out how to c
As explained in the official documentation, you need to check isCancelled() in your SwingWorker callback method.
isCancelled()
SwingWorker