src/share/classes/javax/swing/plaf/basic/BasicComboBoxRenderer.java
Print this page
*** 47,57 ****
*
* @author Arnaud Weber
*/
@SuppressWarnings("serial") // Same-version serialization only
public class BasicComboBoxRenderer extends JLabel
! implements ListCellRenderer, Serializable {
/**
* An empty <code>Border</code>. This field might not be used. To change the
* <code>Border</code> used by this renderer directly set it using
* the <code>setBorder</code> method.
--- 47,57 ----
*
* @author Arnaud Weber
*/
@SuppressWarnings("serial") // Same-version serialization only
public class BasicComboBoxRenderer extends JLabel
! implements ListCellRenderer<Object>, Serializable {
/**
* An empty <code>Border</code>. This field might not be used. To change the
* <code>Border</code> used by this renderer directly set it using
* the <code>setBorder</code> method.
*** 86,97 ****
}
return size;
}
! public Component getListCellRendererComponent(
! JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
{
--- 86,97 ----
}
return size;
}
! @Override
! public Component getListCellRendererComponent(JList<?> list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
{