/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showFrame(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showFrame(owner, pane); }
/** * <p>Constructs and shows the error dialog, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the dialog shown will be modal. Otherwise, this thread will * block until the error dialog has been shown and hidden on the EDT.</p> * * @param owner Owner of this error dialog. Determines the Window in which the dialog * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showDialog(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showDialog(owner, pane); }
/** * <p>Constructs and shows the error dialog, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the dialog shown will be modal. Otherwise, this thread will * block until the error dialog has been shown and hidden on the EDT.</p> * * @param owner Owner of this error dialog. Determines the Window in which the dialog * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showDialog(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showDialog(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showFrame(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showFrame(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showInternalFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showInternalFrame(owner, pane); }
/** * <p>Constructs and shows the error dialog, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the dialog shown will be modal. Otherwise, this thread will * block until the error dialog has been shown and hidden on the EDT.</p> * * @param owner Owner of this error dialog. Determines the Window in which the dialog * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showDialog(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showDialog(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showFrame(owner, pane); }
/** * <p>Constructs and shows the error dialog, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the dialog shown will be modal. Otherwise, this thread will * block until the error dialog has been shown and hidden on the EDT.</p> * * @param owner Owner of this error dialog. Determines the Window in which the dialog * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showDialog(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showDialog(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showInternalFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showInternalFrame(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showInternalFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showInternalFrame(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showInternalFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showInternalFrame(owner, pane); }
/** * <p>Constructs and shows the error dialog, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the dialog shown will be modal. Otherwise, this thread will * block until the error dialog has been shown and hidden on the EDT.</p> * * @param owner Owner of this error dialog. Determines the Window in which the dialog * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showDialog(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showDialog(owner, pane); }
/** * <p>Constructs and shows the error frame, using the given * <code>ErrorInfo</code> to initialize the view.</p> * * <p>This method may be called from any thread. It will actually show the error * dialog on the AWT event dispatch thread. This method blocks. If called * on the EDT, the frame shown will be modal. Otherwise, this thread will * block until the error frame has been shown and hidden on the EDT.</p> * * @param owner Owner of this error frame. Determines the Window in which the frame * is displayed; if the <code>owner</code> has * no <code>Window</code>, a default <code>Frame</code> is used * @param info <code>ErrorInfo</code> that incorporates all the information about the error */ public static void showInternalFrame(Component owner, ErrorInfo info) { JXErrorPane pane = new JXErrorPane(); pane.setErrorInfo(info); showInternalFrame(owner, pane); }
errorPane.setErrorInfo(errorInfo); showDialog(parent, errorPane);
t("jaxx.application.error.errorpane.htmlmessage", message), null, null, cause, null, null); pane.setErrorInfo(info); pane.setErrorReporter(this); ApplicationActionUI actionUI = context.getActionUI();
public static void showErrorMessage(final String shortMessage, final String detailedMessage, final Throwable exception) { final Throwable presentedException = ErrorUtils.unwrapForPresentation(exception); if (exception == null) { showErrorMessage(shortMessage, detailedMessage); return; } final String finalDetailedMessage = detailedMessage == null ? "" : detailedMessage; final String finalShortMessage = shortMessage == null ? "" : shortMessage; final ErrorInfo info = new ErrorInfo(finalShortMessage, finalDetailedMessage, null, "error", presentedException, ErrorLevel.SEVERE, null); final JXErrorPane errorPane = new JXErrorPane(); errorPane.setErrorInfo(info); final JDialog dialog = JXErrorPane.createDialog(null, errorPane); centerOnScreen(dialog); JXErrorPane.setDefaultLocale(Locale.ENGLISH); dialog.setLocale(Locale.ENGLISH); dialog.setModal(true); dialog.setTitle(finalShortMessage); dialog.setVisible(true); dialog.toFront(); }
/** * Display a user friendly error frame. * * @param parent parent component * @param message message for user * @param cause exception cause */ public static void showErrorDialog(Component parent, String message, Throwable cause) { JXErrorPane pane = new JXErrorPane(); String details = "<pre>\n" + getDetails(cause) + "\n</pre>"; ErrorInfo info = new ErrorInfo(t("isisfish.error.errorpane.title"), t("isisfish.error.errorpane.htmlmessage", message), details, null, cause, null, null); pane.setErrorInfo(info); if (cause != null) { pane.setErrorReporter(new ErrorHelper()); } JXErrorPane.showDialog(parent, pane); }
null); JXErrorPane errorPane = new JXErrorPane(); errorPane.setErrorInfo(errorInfo); JXErrorPane.showDialog(View.getSingleton().getSplashScreen(), errorPane);