Class OkDialog

All Implemented Interfaces:
ActionContextProvider, StatusListener, TaskListener

public class OkDialog extends OptionDialog
A dialog with an OK button. The client can specify the message type in the constructor.
  • Constructor Details

    • OkDialog

      public OkDialog(String title, 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(String title, String message, 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 Details

    • show

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

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

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