Top Description Fields Constructors Methods
javafx.scene.control

public Class PasswordField

extends TextField
Class Inheritance
Imports
javafx.scene.AccessibleAttribute, .AccessibleRole

Text field that masks entered characters.

Example:

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

Field Summary

Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public
PasswordField()

Creates a default PasswordField instance.

Method Summary

Modifier and TypeMethod and Description
public void
copy()

Overrides javafx.scene.control.TextInputControl.copy.

Does nothing for PasswordField.

public void
cut()

Overrides javafx.scene.control.TextInputControl.cut.

Does nothing for PasswordField.

public Object
queryAccessibleAttribute(AccessibleAttribute
the requested attribute
attribute
,
Object...
optional list of parameters
parameters
)

Overrides javafx.scene.control.TextInputControl.queryAccessibleAttribute.

This method is called by the assistive technology to request the value for an attribute.

Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkinfilterInputgetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Constructor Detail

PasswordFieldback to summary
public PasswordField()

Creates a default PasswordField instance.

Method Detail

copyback to summary
public void copy()

Overrides javafx.scene.control.TextInputControl.copy.

Does nothing for PasswordField.

Annotations
@Override
cutback to summary
public void cut()

Overrides javafx.scene.control.TextInputControl.cut.

Does nothing for PasswordField.

Annotations
@Override
queryAccessibleAttributeback to summary
public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)

Overrides javafx.scene.control.TextInputControl.queryAccessibleAttribute.

Doc from javafx.scene.control.TextInputControl.queryAccessibleAttribute.

This method is called by the assistive technology to request the value for an attribute.

This method is commonly overridden by subclasses to implement attributes that are required for a specific role.
If a particular attribute is not handled, the superclass implementation must be called.

Parameters
attribute:AccessibleAttribute

Doc from javafx.scene.Node.queryAccessibleAttribute.

the requested attribute

parameters:Object[]

Doc from javafx.scene.Node.queryAccessibleAttribute.

optional list of parameters

Returns:Object

Doc from javafx.scene.Node.queryAccessibleAttribute.

the value for the requested attribute

Annotations
@Override