-
Bug
-
Resolution: Fixed
-
P3
-
7u45, 7-pool, 8-pool, 9
-
b01
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8043249 | 9 | Anton Litvinov | P3 | Resolved | Fixed | b15 |
JDK-8045656 | 8u25 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8043309 | 8u20 | Anton Litvinov | P3 | Resolved | Fixed | b17 |
JDK-8053604 | emb-8u26 | Anton Litvinov | P3 | Resolved | Fixed | b17 |
JDK-8061017 | 7u79 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8057487 | 7u76 | Anton Litvinov | P3 | Closed | Fixed | b01 |
JDK 7u45 b18, JDK 9, JDK 8
A DESCRIPTION OF THE PROBLEM :
The selectionBackground and selectionForeground colors installed on a JList by the Nimbus L&F are instances of javax.swing.plaf.nimbus.DerivedColor, which does not implement UIResource. Consequently, if the Nimbus L&F has been used, these colors then incorrectly persist when switching to another L&F.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
As a workaround, override the JList's updateUI method as follows:
@Override
public void updateUI() {
setSelectionBackground(new javax.swing.plaf.ColorUIResource(0));
setSelectionForeground(new javax.swing.plaf.ColorUIResource(0));
super.updateUI();
}
- backported by
-
JDK-8043249 Nimbus JList selection colors persist across L&F changes
- Resolved
-
JDK-8043309 Nimbus JList selection colors persist across L&F changes
- Resolved
-
JDK-8045656 Nimbus JList selection colors persist across L&F changes
- Resolved
-
JDK-8053604 Nimbus JList selection colors persist across L&F changes
- Resolved
-
JDK-8061017 Nimbus JList selection colors persist across L&F changes
- Resolved
-
JDK-8057487 Nimbus JList selection colors persist across L&F changes
- Closed
- relates to
-
JDK-8057791 Selection in JList is drawn with wrong colors in Nimbus L&F
- Resolved