Class ToolTipComboBoxRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<Object>, SwingConstants

public class ToolTipComboBoxRenderer extends BasicComboBoxRenderer
A combo box renderer that allows tooltip for each element in the combo box list.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • ToolTipComboBoxRenderer

      public ToolTipComboBoxRenderer()
      Empty default constructor
    • ToolTipComboBoxRenderer

      public ToolTipComboBoxRenderer(Vector tooltips, int align)
      Creates a new instance of the MyComboBoxRenderer.
      Parameters:
      tooltips - vector containing the tooltips
      align - the horizontal alignment of the text
    • ToolTipComboBoxRenderer

      public ToolTipComboBoxRenderer(Vector tooltips, int align, Color backgroundColor)
      Creates a new instance of the MyComboBoxRenderer.
      Parameters:
      tooltips - vector containing the tooltips
      align - the horizontal alignment of the text
      backgroundColor - the background color for the list, defaults to white if not set
  • Method Details