private void exitIfFatal() { ErrorInfo info = pane.getErrorInfo(); // FYI: info can be null if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { Action fatalAction = pane.getActionMap().get(JXErrorPane.FATAL_ACTION_KEY); if (fatalAction == null) { System.exit(1); } else { ActionEvent ae = new ActionEvent(closeButton, -1, "fatal"); fatalAction.actionPerformed(ae); } } }
private void exitIfFatal() { ErrorInfo info = pane.getErrorInfo(); // FYI: info can be null if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { Action fatalAction = pane.getActionMap().get(JXErrorPane.FATAL_ACTION_KEY); if (fatalAction == null) { System.exit(1); } else { ActionEvent ae = new ActionEvent(closeButton, -1, "fatal"); fatalAction.actionPerformed(ae); } } }
private void exitIfFatal() { ErrorInfo info = pane.getErrorInfo(); // FYI: info can be null if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { Action fatalAction = pane.getActionMap().get(JXErrorPane.FATAL_ACTION_KEY); if (fatalAction == null) { System.exit(1); } else { ActionEvent ae = new ActionEvent(closeButton, -1, "fatal"); fatalAction.actionPerformed(ae); } } }
private void exitIfFatal() { ErrorInfo info = pane.getErrorInfo(); // FYI: info can be null if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { Action fatalAction = pane.getActionMap().get(JXErrorPane.FATAL_ACTION_KEY); if (fatalAction == null) { System.exit(1); } else { ActionEvent ae = new ActionEvent(closeButton, -1, "fatal"); fatalAction.actionPerformed(ae); } } }
private void exitIfFatal() { ErrorInfo info = pane.getErrorInfo(); // FYI: info can be null if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { Action fatalAction = pane.getActionMap().get(JXErrorPane.FATAL_ACTION_KEY); if (fatalAction == null) { System.exit(1); } else { ActionEvent ae = new ActionEvent(closeButton, -1, "fatal"); fatalAction.actionPerformed(ae); } } }
html.append("<b>Level:</b>"); html.append("<pre>"); html.append(" " + errorInfo.getErrorLevel()); html.append("</pre>"); html.append("<b>Stack Trace:</b>");
html.append("<b>Level:</b>"); html.append("<pre>"); html.append(" " + errorInfo.getErrorLevel()); html.append("</pre>"); html.append("<b>Stack Trace:</b>");
html.append("<b>Level:</b>"); html.append("<pre>"); html.append(" " + errorInfo.getErrorLevel()); html.append("</pre>"); html.append("<b>Stack Trace:</b>");
html.append("<b>Level:</b>"); html.append("<pre>"); html.append(" " + errorInfo.getErrorLevel()); html.append("</pre>"); html.append("<b>Stack Trace:</b>");
html.append("<b>Level:</b>"); html.append("<pre>"); html.append(" " + errorInfo.getErrorLevel()); html.append("</pre>"); html.append("<b>Stack Trace:</b>");
/** * {@inheritDoc} */ @Override protected void reinit() { super.reinit(); ErrorInfo info = pane == null ? null : pane.getErrorInfo(); titleLabel.setText(info == null ? "Unknown Error" : info.getTitle()); Object finePrint = pane.getClientProperty("fine-print"); String text = finePrint == null ? null : finePrint.toString(); disclaimerText.setText(text); disclaimerText.setVisible(text != null); if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); } else { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale())); } }
/** * {@inheritDoc} */ @Override protected void reinit() { super.reinit(); ErrorInfo info = pane == null ? null : pane.getErrorInfo(); titleLabel.setText(info == null ? "Unknown Error" : info.getTitle()); Object finePrint = pane.getClientProperty("fine-print"); String text = finePrint == null ? null : finePrint.toString(); disclaimerText.setText(text); disclaimerText.setVisible(text != null); if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); } else { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale())); } }
/** * {@inheritDoc} */ protected void reinit() { super.reinit(); ErrorInfo info = pane == null ? null : pane.getErrorInfo(); titleLabel.setText(info == null ? "Unknown Error" : info.getTitle()); Object finePrint = pane.getClientProperty("fine-print"); String text = finePrint == null ? null : finePrint.toString(); disclaimerText.setText(text); disclaimerText.setVisible(text != null); if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); } else { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale())); } }
/** * {@inheritDoc} */ @Override protected void reinit() { super.reinit(); ErrorInfo info = pane == null ? null : pane.getErrorInfo(); titleLabel.setText(info == null ? "Unknown Error" : info.getTitle()); Object finePrint = pane.getClientProperty("fine-print"); String text = finePrint == null ? null : finePrint.toString(); disclaimerText.setText(text); disclaimerText.setVisible(text != null); if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); } else { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale())); } }
/** * {@inheritDoc} */ @Override protected void reinit() { super.reinit(); ErrorInfo info = pane == null ? null : pane.getErrorInfo(); titleLabel.setText(info == null ? "Unknown Error" : info.getTitle()); Object finePrint = pane.getClientProperty("fine-print"); String text = finePrint == null ? null : finePrint.toString(); disclaimerText.setText(text); disclaimerText.setVisible(text != null); if (info != null && info.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); } else { closeButton.setText(UIManagerExt.getString(CLASS_NAME + ".ok_button_text", closeButton.getLocale())); } }
errorInfo.getErrorLevel(), state);
if (errorInfo.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString( CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); if (errorInfo.getErrorLevel().intValue() <= Level.WARNING.intValue()) { icon = getDefaultWarningIcon(); } else {
if (errorInfo.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString( CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); if (errorInfo.getErrorLevel().intValue() <= Level.WARNING.intValue()) { icon = getDefaultWarningIcon(); } else {
if (errorInfo.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString( CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); if (errorInfo.getErrorLevel().intValue() <= Level.WARNING.intValue()) { icon = getDefaultWarningIcon(); } else {
if (errorInfo.getErrorLevel() == ErrorLevel.FATAL) { closeButton.setText(UIManagerExt.getString( CLASS_NAME + ".fatal_button_text", closeButton.getLocale())); if (errorInfo.getErrorLevel().intValue() <= Level.WARNING.intValue()) { icon = getDefaultWarningIcon(); } else {