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

TextField promptText is not shown when control has focus

    Details

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

      Java7-update6, Windows 7

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: