0

The JavaFX Textfield control has the "Prompt Text" property to inform user what have to be digited.

enter image description here

However, as soon the control received focus the text of that property gets gone. I would like that the Textfield behaviour was like HTML5 control: only dissapear after first caracter was introduced and reappear if all caracters was erased.

Thanks in advance.

  • 2
    [Clear prompt text in JavaFX TextField only when user starts typing](https://stackoverflow.com/questions/25125563/clear-prompt-text-in-javafx-textfield-only-when-user-starts-typing) – anko Aug 16 '20 at 20:46
  • @anko Unfortunately this topic did not appear in the search I did on the site.Thank you so much for show me the link. – Adalberto José Brasaca Aug 16 '20 at 21:17
  • typing "prompt text" (which is the term you use in the question) in the javafx tag search field reveals the duplicate as about 10th result - just saying ;) – kleopatra Aug 17 '20 at 09:50
  • @kleopatra The idea behind my question was to make a custom control. That's why I did a question about "focus event override". I looked all the site's suggested questions and none of them gives me the answer. But Anko's link is the starting point. Just replying... Thank you. – Adalberto José Brasaca Aug 17 '20 at 14:41

0 Answers0