src/share/classes/javax/swing/plaf/synth/SynthListUI.java
Print this page
*** 205,215 ****
if (useUIBorder || b instanceof SynthBorder) {
super.setBorder(b);
}
}
! @Override public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
if (!useListColors && (isSelected || cellHasFocus)) {
SynthLookAndFeel.setSelectedUI((SynthLabelUI)SynthLookAndFeel.
getUIOfType(getUI(), SynthLabelUI.class),
isSelected, cellHasFocus, list.isEnabled(), false);
--- 205,215 ----
if (useUIBorder || b instanceof SynthBorder) {
super.setBorder(b);
}
}
! @Override public Component getListCellRendererComponent(JList<?> list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
if (!useListColors && (isSelected || cellHasFocus)) {
SynthLookAndFeel.setSelectedUI((SynthLabelUI)SynthLookAndFeel.
getUIOfType(getUI(), SynthLabelUI.class),
isSelected, cellHasFocus, list.isEnabled(), false);