Class CustomListCellRenderer

    • Field Detail

      • defaultFont

        protected Font defaultFont
        The default font.
    • Constructor Detail

      • CustomListCellRenderer

        public CustomListCellRenderer​(JComboBox combo)
        Constructor of a renderer to be used with a combo box.
        Parameters:
        combo - the combo box containing the elements to be rendered.
      • CustomListCellRenderer

        public CustomListCellRenderer​(JList list)
        Constructor of a renderer to be used with a list.
        Parameters:
        list - the list to be rendered.
    • Method Detail

      • getStringValue

        protected String getStringValue​(CategorizedComboBoxElement desc)
        Returns the String value for a given CategorizedComboBoxElement.
        Parameters:
        desc - the combo box element.
        Returns:
        the String value for a given CategorizedComboBoxElement.