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.
*** 87,97 **** return size; } public Component getListCellRendererComponent( ! JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { --- 87,97 ---- return size; } public Component getListCellRendererComponent( ! JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {