Class OkDialog

    • Constructor Detail

      • OkDialog

        public OkDialog​(java.lang.String title,
                        java.lang.String message,
                        int messageType)
        Construct a simple informational dialog with a single OK button
        Parameters:
        title - The String to be placed in the dialogs title area
        message - The information message to be displayed in the dialog
        messageType - used to specify a default icon
        • ERROR_MESSAGE
        • INFORMATION_MESSAGE
        • WARNING_MESSAGE
        • QUESTION_MESSAGE
        • PLAIN_MESSAGE
      • OkDialog

        public OkDialog​(java.lang.String title,
                        java.lang.String message,
                        javax.swing.Icon icon)
        Construct a simple informational dialog with a single OK button
        Parameters:
        title - The String to be placed in the dialogs title area
        message - The information message to be displayed in the dialog
        icon - allows the user to specify the icon to be used If non-null, this will override the messageType
    • Method Detail

      • show

        public static void show​(java.lang.String title,
                                java.lang.String message)
        Show a plain OkDialog with the given title and message
        Parameters:
        title - the title
        message - the message
      • showInfo

        public static void showInfo​(java.lang.String title,
                                    java.lang.String message)
        Show a plain OkDialog with the given title and message
        Parameters:
        title - the title
        message - the message
      • showError

        public static void showError​(java.lang.String title,
                                     java.lang.String message)
        Show a plain OkDialog with the given title and message
        Parameters:
        title - the title
        message - the message