> Disabled JPasswordField foreground color was not grayed out in GTK LAF. > > The foreground color in disabled state was close to black color (RGB 0,0,0) > for password field which is not differentiable from enabled state foreground > color. > > To fix for this problem, the widget type is changed to `TEXT_AREA `for > disable password field which returns the foreground color as gray. Checked > with Oracle linux as well and fix worked fine. > > An automated test case has been added and checked in CI, link is added in > JBS. Test mentioned in JBS also works fine with the fix.
Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Fix extended for TextField, FormattedTextField, Spinner ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15263/files - new: https://git.openjdk.org/jdk/pull/15263/files/79d3bfb8..cbe5816a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15263&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15263&range=00-01 Stats: 95 lines in 2 files changed: 66 ins; 12 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/15263.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15263/head:pull/15263 PR: https://git.openjdk.org/jdk/pull/15263
