public void actionPerformed(ActionEvent e) { if ("OK".equals(e.getActionCommand())) { this.setVisible(false); } }
public void actionPerformed(ActionEvent e) { if ("OK".equals(e.getActionCommand())) { this.setVisible(false); } }
/** * 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(); }
/** * 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 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(); }