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

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

    XMLWordPrintable

Details

    • 16
    • b08

    Backports

      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

          1. NimbusPropertiesPersists.java
            2 kB
            Tejpal Rebari
          2. NimbusPropertiesTest.java
            1 kB
            Tejpal Rebari

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: