Class PasswordField

All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class PasswordField extends TextField
Text field that masks entered characters.

Example:

 var passwordField = new PasswordField();
 passwordField.setText("password123");
Image of the PasswordField control
Since:
JavaFX 2.0
  • Constructor Details

    • PasswordField

      public PasswordField()
      Creates a default PasswordField instance.
  • Method Details

    • cut

      public void cut()
      Does nothing for PasswordField.
      Overrides:
      cut in class TextInputControl
    • copy

      public void copy()
      Does nothing for PasswordField.
      Overrides:
      copy in class TextInputControl