Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8093931

TextField promptText is not shown when control has focus

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8u20
    • 7u9
    • javafx
    • None
    • Java7-update6, Windows 7

      The documentation for TextField says that the prompt text is shown "...when there is no text already in the TextField..." but, in fact, it stops showing the prompt text as soon as the control has focus.

      It seems that there are valid situations where one might want it to work either way ('show prompt until control has focus' vs. 'show prompt until text is entered'), so perhaps this should be controlled by another property.

      However, at the very least, the documentation is incorrect.

            jgiles Jonathan Giles
            rterrelljfx Roger Terrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: