// Report the result using invokeLater().
SwingUtilities.invokeLater(new Runnable() {
public void run() {
System.out.println(">> It took " + ((System.currentTimeMillis() - milliseconds)/1000.0) + " seconds");
MapFrame.This().infoPane.textPane.insertTextOut(queryResult.getOutput());
QueryResultSummaryDialog dialog = new QueryResultSummaryDialog(queryResult);
JOptionPane.showMessageDialog(prognosFrame, dialog, "Query Result: Summary", JOptionPane.INFORMATION_MESSAGE);
}
});
}