Renderering Lists and Trees

« Interface »
ListCellRenderer
+ getListCellRendererComponent(JList, Object,
      int, boolean, boolean) : Component
DataRenderer
+ DataRenderer(int[])
# setColors(boolean)
# setValues(Object)
+ getListCellRendererComponent(JList, Object,
      int, boolean, boolean) : Component
« Interface »
TreeCellRenderer
+ getTreeCellRendererComponent(JTree, Object,
      boolean, boolean, boolean, int, boolean) : Component
TreeListCellRenderer
+ TreeListCellRenderer(int[])

# addBorderlessCell(JLabel)
# setColors(boolean)
# setValues(Object)

+ getTreeCellRendererComponent(JTree, Object,
      boolean, boolean, boolean, int, boolean) : Component
public Component getTreeCellRendererComponent(JTree tree, Object value, 
            boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {

    setColors(selected);
    setValues(value);

    return treeComponent;
}