Class DelegatingComboBoxRenderer<T,​U>

  • All Implemented Interfaces:
    javax.swing.ListCellRenderer<T>
    Direct Known Subclasses:
    LanguageComboBoxRenderer, TokenizerComboBoxRenderer

    public abstract class DelegatingComboBoxRenderer<T,​U>
    extends java.lang.Object
    implements javax.swing.ListCellRenderer<T>
    A combo box renderer that delegates rendering to the Look And Feel's default renderer. This preserves OS styling and highlighting on e.g. Mac OS X.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends T> list, T value, int index, boolean isSelected, boolean cellHasFocus)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingComboBoxRenderer

        public DelegatingComboBoxRenderer()
    • Method Detail

      • getListCellRendererComponent

        public java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends T> list,
                                                               T value,
                                                               int index,
                                                               boolean isSelected,
                                                               boolean cellHasFocus)
        Specified by:
        getListCellRendererComponent in interface javax.swing.ListCellRenderer<T>