< prev index next >

src/java.desktop/share/classes/javax/swing/ListCellRenderer.java

Print this page

        

*** 89,102 **** */ public interface ListCellRenderer<E> { /** * Return a component that has been configured to display the specified ! * value. That component's <code>paint</code> method is then called to * "render" the cell. If it is necessary to compute the dimensions * of a list because the list cells do not have a fixed size, this method ! * is called to generate a component on which <code>getPreferredSize</code> * can be invoked. * * @param list The JList we're painting. * @param value The value returned by list.getModel().getElementAt(index). * @param index The cells index. --- 89,102 ---- */ public interface ListCellRenderer<E> { /** * Return a component that has been configured to display the specified ! * value. That component's {@code paint} method is then called to * "render" the cell. If it is necessary to compute the dimensions * of a list because the list cells do not have a fixed size, this method ! * is called to generate a component on which {@code getPreferredSize} * can be invoked. * * @param list The JList we're painting. * @param value The value returned by list.getModel().getElementAt(index). * @param index The cells index.
< prev index next >