<Swing Dev> RFR: 8256019: JLabel HTML text does not support translucent text colors [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Nov 20 03:41:21 UTC 2020


> Issue is a JLabel with a translucent foreground color properly renders plain text, but with HTML text, the alpha component is discarded and the text is rendered using an opaque color.
> As per https://www.w3schools.com/cssref/func_rgba.asp, CSS supports rgba() to support alpha and render translucent text color
> but support for rgba() is not present in JDK html text rendering.
> 
> Added support for rgba() to render translucent text color.

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

  Update spec

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1158/files
  - new: https://git.openjdk.java.net/jdk/pull/1158/files/769eb298..bf0c84ae

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1158&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1158&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1158.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1158/head:pull/1158

PR: https://git.openjdk.java.net/jdk/pull/1158


More information about the swing-dev mailing list