public interface ListCellRenderer<T>
An instance of a renderer can be developed as such:
|Modifier and Type||Method and Description|
Returns a component instance that is already set to render "value".
Returns a component instance that is painted under the currently focused renderer and is animated to provide smooth scrolling.
Component getListCellRendererComponent(List list, T value, int index, boolean isSelected)
list- the list component
value- the value to render
index- the index in the list
isSelected- whether the entry is selected
Component getListFocusComponent(List list)
list- the parent list