Has anyone out there ever created their own custom class that implemented TreeCellRenderer? I've got this far:

private class TestRenderer implements TreeCellRenderer
{
public Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
{
return null;
} //end getTreeCellRendererComponent
} //end testRenderer




But I have absolutely no idea what to do next. I need to change the way the object contained in the cell is rendered, set Icons, etc, but have no clue as to how to do it. Any help would be appreciated!

Thanks!


"There's nothing more dangerous than a resourceful idiot." ---Dilbert