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

TextField promptText is not shown when control has focus

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Not an Issue
    • 7u9
    • 8u20
    • javafx
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: