Issue originally happened on `TextField` but it's also reproducible in 
`TextArea` when CSS option `-fx-prompt-text-fill` is used. 
To fix this issue the prompt visibility is now based directly on control focus 
state `control.isFocused()`.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Merge branch 'openjdk:master' into 8204323.promptTextCSS
 - Add Tests
 - Fix prompt text hiding when styled

Changes: https://git.openjdk.org/jfx/pull/2174/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2174&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8204323
  Stats: 79 lines in 4 files changed: 74 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jfx/pull/2174.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2174/head:pull/2174

PR: https://git.openjdk.org/jfx/pull/2174

Reply via email to