Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

setting a hint on a text field in javafx

userTextField.setPromptText("name"); //to set the hint text
userTextField.getParent().requestFocus(); //to not setting the focus on that node so that the hint will display immediately
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setting #hint #text #field #javafx
ADD COMMENT
Topic
Name
5+5 =