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

Nimbus JTree default tree cell renderer does not use selected text color

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      16
    • Resolved In Build:
      b08

      Description

      When a JTree node is selected, the text should be painted using the selected text color (white), matching the color of the expansion control. Instead, it is painted using the standard color (black).

      This bug is easily seen in SwingSet2.
      The behavior is correct in JDK 9 through 15, incorrect in 16 and 17.

      Observation: although the cell renderer correctly configures the foreground color, SynthLabelUI overrides it because the color is a UIResource.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              trebari Tejpal Rebari (Inactive)
              Reporter:
              alans Alan Snyder
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: