javax.swing.plaf.metal

Class MetalFileChooserUI.FileRenderer

protected class MetalFileChooserUI.FileRenderer extends DefaultListCellRenderer

A renderer for the files and directories in the file chooser.
Constructor Summary
protected FileRenderer()
Creates a new renderer.
Method Summary
ComponentgetListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
Returns a component that can render the specified value.

Constructor Detail

FileRenderer

protected FileRenderer()
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 render the specified value.

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

Returns: The renderer.