Class NoteInputDialog

    • Constructor Detail

      • NoteInputDialog

        public NoteInputDialog​(Component parent,
                               String title,
                               String buttonText)
        Construct the dialog with a title and button text. A cancel button is automatically added
        Parameters:
        parent - The parent GUI element
        title - Translated string to display in the dialog's title bar
        buttonText - Translated string to display on the action button
    • Method Detail

      • showNoteDialog

        public void showNoteDialog​(String message,
                                   Icon icon)
        Displays the dialog to the user
        Parameters:
        message - Translated message to display to the user as input prompt
        icon - Icon to display in the action button
      • getInputText

        public String getInputText()
        Get the content of the text area
        Returns:
        Text input by user