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

Redo: Nimbus JTree renderer properties persist across L&F changes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • OS:
      generic

      Backports

        Description

        FULL PRODUCT VERSION :


        A DESCRIPTION OF THE PROBLEM :
        The following UI properties, documented at http://docs.oracle.com/javase/7/docs/api/javax/swing/tree/DefaultTreeCellRenderer.html, are supposed to be instances of UIResource if they are defined by the L&F:

        1. "Tree.leafIcon"
        2. "Tree.closedIcon"
        3. "Tree.openIcon"
        4. "Tree.selectionForeground"
        5. "Tree.textForeground"
        6. "Tree.selectionBackground"
        7. "Tree.textBackground"
        8. "Tree.selectionBorderColor"

        On the Nimbus L&F, all are defined, but none of them implement UIResource. This causes them to incorrectly persist across L&F changes.

          See also:
        http://bugs.sun.com/view_bug.do?bug_id=9008369
        http://bugs.sun.com/view_bug.do?bug_id=9008389


        REPRODUCIBILITY :
        This bug can be reproduced always.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                psadhukhan Prasanta Sadhukhan
                Reporter:
                trebari Tejpal Rebari (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: