/** * Shows the error dialog and waits for the user to acknowledge the dialog. * <p> * If the JetS3t property <tt>gui.verboseErrorDialog</tt> is set to true, this dialog will * display detailed information about the root cause of the error (the throwable, if provided) * </p> * * @param ownerDialog * the dialog that will own this dialog * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. * @param applicationProperties * property settings for this application * @param message * a general error message, which should ideally be somewhat user-friendly. * @param throwable * the underlying exception that caused the error. */ public static void showDialog(JDialog ownerDialog, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable) { ErrorDialog dialog = new ErrorDialog(ownerDialog, hyperlinkListener, applicationProperties); dialog.initGui(message, dialog.buildDetailedText(throwable)); dialog.setVisible(true); dialog.dispose(); }
this.setResizable(false); this.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); okButton.setText("OK"); okButton.addActionListener(this); this.getRootPane().setDefaultButton(okButton); 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE, insetsDefault, 0, 0)); this.getContentPane().add(dialogPanel); this.pack(); this.setLocationRelativeTo(this.getOwner());
this.setResizable(false); this.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); okButton.setText("OK"); okButton.addActionListener(this); this.getRootPane().setDefaultButton(okButton); 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE, insetsDefault, 0, 0)); this.getContentPane().add(dialogPanel); this.pack(); this.setLocationRelativeTo(this.getOwner());
/** * Shows the error dialog and waits for the user to acknowledge the dialog. * <p> * If the JetS3t property <tt>gui.verboseErrorDialog</tt> is set to true, this dialog will * display detailed information about the root cause of the error (the throwable, if provided) * </p> * * @param ownerDialog * the dialog that will own this dialog * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. * @param applicationProperties * property settings for this application * @param message * a general error message, which should ideally be somewhat user-friendly. * @param throwable * the underlying exception that caused the error. */ public static void showDialog(JDialog ownerDialog, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable) { ErrorDialog dialog = new ErrorDialog(ownerDialog, hyperlinkListener, applicationProperties); dialog.initGui(message, dialog.buildDetailedText(throwable)); dialog.setVisible(true); dialog.dispose(); }
/** * Shows the error dialog and waits for the user to acknowledge the dialog. * <p> * If the JetS3t property <tt>gui.verboseErrorDialog</tt> is set to true, this dialog will * display detailed information about the root cause of the error (the throwable, if provided) * </p> * * @param ownerFrame * the frame that will own the dialog * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. * @param applicationProperties * property settings for this application * @param message * a general error message, which should ideally be somewhat user-friendly. * @param throwable * the underlying exception that caused the error. */ public static void showDialog(Frame ownerFrame, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable) { log.warn("Showing ErrorDialog: message=" + message, throwable); ErrorDialog dialog = new ErrorDialog(ownerFrame, hyperlinkListener, applicationProperties); dialog.initGui(message, dialog.buildDetailedText(throwable)); dialog.setVisible(true); dialog.dispose(); }
/** * Shows the error dialog and waits for the user to acknowledge the dialog. * <p> * If the JetS3t property <tt>gui.verboseErrorDialog</tt> is set to true, this dialog will * display detailed information about the root cause of the error (the throwable, if provided) * </p> * * @param ownerFrame * the frame that will own the dialog * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. * @param applicationProperties * property settings for this application * @param message * a general error message, which should ideally be somewhat user-friendly. * @param throwable * the underlying exception that caused the error. */ public static void showDialog(Frame ownerFrame, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable) { log.warn("Showing ErrorDialog: message=" + message, throwable); ErrorDialog dialog = new ErrorDialog(ownerFrame, hyperlinkListener, applicationProperties); dialog.initGui(message, dialog.buildDetailedText(throwable)); dialog.setVisible(true); dialog.dispose(); }