if (svgUserAgent != null) {
super.displayError(ex);
} else {
JErrorPane pane =
new JErrorPane(ex, JOptionPane.ERROR_MESSAGE);
JDialog dialog = pane.createDialog(JSVGCanvas.this, "ERROR");
dialog.setModal(false);
dialog.setVisible(true); // Safe to be called from any thread
}
}
}