/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (debug) { ex.printStackTrace(); } JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (debug) { ex.printStackTrace(); } JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { 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 } } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { 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 } } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { 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 } } }