TextField promptText is not shown when control has focus

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • 8u20
    • Affects Version/s: 7u9
    • Component/s: javafx
    • None
    • Environment:

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: