Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8256019

JLabel HTML text does not support translucent text colors

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 14, 15, 16
    • Fix Version/s: 17
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

      See attached test program.

      See: SwingUtilities2.displayPropertiestoCSS, CSS.stringToColor

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              alans Alan Snyder
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: