public void displayError(String message) {
JOptionPane pane;
pane = new JOptionPane(message, JOptionPane.ERROR_MESSAGE);
JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR");
dialog.setModal(false);
dialog.show(); // Safe to be called from any thread
}
/**
* Displays an error resulting from the specified Exception.
*/