Class TextInputDialog

java.lang.Object
javafx.scene.control.Dialog<String>
javafx.scene.control.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:
  • Constructor Details

    • 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.
  • Method Details

    • getEditor

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

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