RFR: 8335646: Nimbus : JLabel not painted with LAF defined foreground color on Ubuntu 24.04 [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Oct 7 10:53:13 UTC 2025


> Test fails to pick red color from JLabel in ubuntu24.04 even though it passes is ubuntu 22.04.
> Seems like the red pixel from the font is not being picked up despite the fact that label foreground color actually is rendered in red.
> 
> It is seen in ubuntu 22.04 the font used for JLabel is "family=DejaVu Sans,name=DejaVu Sans,style=plain,size=12"
> while in ubuntu 24.04 the font used for JLabel is "family=Noto Sans,name=Noto Sans,style=plain,size=12"
> 
> I have made it consistent across version using same font and made it larger and bold and using such text for easier pickup of redpixel.
> It passes in all platforms including ubuntu24.04

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Use full block red char

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27635/files
  - new: https://git.openjdk.org/jdk/pull/27635/files/537d53d3..a656dd07

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27635&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27635&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27635.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27635/head:pull/27635

PR: https://git.openjdk.org/jdk/pull/27635


More information about the client-libs-dev mailing list