Class TextInputDialog

  • All Implemented Interfaces:
    EventTarget

    public class TextInputDialog
    extends Dialog<String>
    A dialog that shows a text input control to the user.
    Since:
    JavaFX 8u40
    See Also:
    Dialog
    • Constructor Detail

      • TextInputDialog

        public TextInputDialog()
        Creates a new TextInputDialog without a default value entered into the dialog TextField.
      • TextInputDialog

        public TextInputDialog​(String defaultValue)
        Creates a new TextInputDialog with the default value entered into the dialog TextField.
        Parameters:
        defaultValue - the default value entered into the dialog
    • Method Detail

      • getEditor

        public final TextField getEditor()
        Returns the TextField used within this dialog.
        Returns:
        the TextField used within this dialog
      • getDefaultValue

        public final String getDefaultValue()
        Returns the default value that was specified in the constructor.
        Returns:
        the default value that was specified in the constructor