Class JDialogMipavOptions.ComboBoxRenderer2

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
gov.nih.mipav.view.dialogs.JDialogMipavOptions.ComboBoxRenderer2
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer, SwingConstants
Enclosing class:
JDialogMipavOptions

class JDialogMipavOptions.ComboBoxRenderer2 extends JLabel implements ListCellRenderer
DOCUMENT ME!
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
  • Constructor Details

    • ComboBoxRenderer2

      public ComboBoxRenderer2()
      Creates a new ComboBoxRenderer2 object.
  • Method Details

    • getListCellRendererComponent

      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image.
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer
      Parameters:
      list - DOCUMENT ME!
      value - DOCUMENT ME!
      index - DOCUMENT ME!
      isSelected - DOCUMENT ME!
      cellHasFocus - DOCUMENT ME!
      Returns:
      DOCUMENT ME!