if (choice == JOptionPane.OK_OPTION) {
JobEntry [] jobEntries = statusFrame.listJobs();
for (int i=0; i<jobEntries.length; i++) {
AsyncTaskController controller = jobEntries[i].getController();
if (!controller.isComplete())
controller.kill();
}
}
}
//free unfreed jobs (if indicated):