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

PasswordField: Prompt disappears on focus

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: javafx

      Description

      PasswordField has a flaw: Once the password field gains focus, the prompt text is removed - this is problematic and is also different from how TextField works.

      Primary problem: In applications where the password field is focused as soon as the password field is shown to the user, the prompt will never be shown.

      On a Mac at least, the OS login window works in such a way that you select a photo of yourself first, and then the password field is shown and focused. This works fine, because the OS keeps the prompt text, allowing the user to see that he or she is supposed to type in a "password". This is also how the search field of the Ensemble demo works.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jdinga Jindrich Dinga (Inactive)
                Reporter:
                risaksen Randahl Isaksen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: