Class MessageDialog

All Implemented Interfaces:
BasePane, Composite, Window

public class MessageDialog extends DialogWindow
Simple message dialog that displays a message and has optional selection/confirmation buttons
  • Field Details

  • Constructor Details

  • Method Details

    • showDialog

      public MessageDialogButton showDialog(WindowBasedTextGUI textGUI)
      Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
      Overrides:
      showDialog in class DialogWindow
      Parameters:
      textGUI - Text GUI to add the dialog to
      Returns:
      The selected button's enum value
    • showMessageDialog

      public static MessageDialogButton showMessageDialog(WindowBasedTextGUI textGUI, String title, String text, MessageDialogButton... buttons)
      Shortcut for quickly displaying a message box
      Parameters:
      textGUI - The GUI to display the message box on
      title - Title of the message box
      text - Main message of the message box
      buttons - Buttons that the user can confirm the message box with
      Returns:
      Which button the user selected