-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
7u6
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.
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.
- duplicates
-
JDK-8093931 TextField promptText is not shown when control has focus
- Closed
-
JDK-8139869 Mac: Prompt texts are hidden upon focus
- Open
- relates to
-
JDK-8100686 [TextField, TextArea] Prompt text is not removed when the control gets focus
- Resolved