javax.swing.plaf.metal

Class MetalFileChooserUI.FilterComboBoxRenderer

public class MetalFileChooserUI.FilterComboBoxRenderer extends DefaultListCellRenderer

A renderer for the items in the file filter combo box.
Constructor Summary
FilterComboBoxRenderer()
Creates a new renderer.
Method Summary
ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
Returns a component that can be used to paint the given value within the list.

Constructor Detail

FilterComboBoxRenderer

public FilterComboBoxRenderer()
Creates a new renderer.

Method Detail

getListCellRendererComponent

public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
Returns a component that can be used to paint the given value within the list.

Parameters: list the list. value the value (a {@link FileFilter}). index the item index. isSelected is the item selected? cellHasFocus does the list cell have focus?

Returns: This component as the renderer.