Javatpoint Logo
Javatpoint Logo

JavaFX PasswordField

However, typing a password in a text field is not secure for the user. The Application must use a specific component to get the password from the user.

Passwordfield can be created by instantiating javafx.scene.control.PasswordField class. PasswordField class contains a method named as setPromptText() for showing a prompt text to the user in password field. The data written in the passwordfield is retrieved by getText() method.



JavaFX PasswordField
Next TopicJavaFX Hyperlink

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA