-
Bug
-
Resolution: Fixed
-
P3
-
7u45, 8, 9, 11, 14, 15, 16
-
b13
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277294 | 17.0.3-oracle | Alex Kasko | P3 | Resolved | Fixed | b01 |
JDK-8277206 | 17.0.2 | Alex Kasko | P3 | Resolved | Fixed | b05 |
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.
- backported by
-
JDK-8277206 Redo: Nimbus JTree renderer properties persist across L&F changes
-
- Resolved
-
-
JDK-8277294 Redo: Nimbus JTree renderer properties persist across L&F changes
-
- Resolved
-
- clones
-
JDK-8249674 Redo: Nimbus JTree renderer properties persist across L&F changes
-
- Resolved
-
- relates to
-
JDK-8273043 [TEST_BUG] Automate NimbusJTreeSelTextColor.java
-
- Resolved
-
-
JDK-8266510 Nimbus JTree default tree cell renderer does not use selected text color
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u/9ff9e62e
-
Commit openjdk/jdk/e43a907f
-
Review openjdk/jdk17u/240
-
Review openjdk/jdk/5178