Module AM37

Class MessageDialog

All Implemented Interfaces:
KeyEventListener

public final class MessageDialog
extends Dialog
A dialog showing an error message and a button to close it
  • Constructor Details

    • MessageDialog

      public MessageDialog​(java.lang.String message, Window caller)
      Default constructor

      Creates a custom size dialog screen and prints it in the middle of the scene; if other dialogs are already showing, the new dialog is created at an offset from the already existing one

      Parameters:
      message - the error message
    • MessageDialog

      public MessageDialog​(java.lang.String message, Window caller, int width, int height, CursorPosition initCoord)
  • Method Details