public FileList() { super("FileList", true, true, true); try { jbInit(); } catch (Exception ex) { ex.printStackTrace(); } }
@Override protected void done() { // Turn off indeterminate. progressBar.setIndeterminate(false); // Check for exceptions, and display them if necessary. try { get(); } catch (Exception e) { StringWriter stack_trace = new StringWriter(); e.printStackTrace(new PrintWriter(stack_trace)); MessageBox.messageBox( mainFrame, "Error while " + task, "The following error occurred while " + task + ": " + e.getMessage() + "\n\nStack trace: " + stack_trace, MessageBox.ERROR); } }