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

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

XMLWordPrintable

    • 16
    • b08

        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.

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

                Created:
                Updated:
                Resolved: