|
-
September 19th, 2000, 12:37 PM
#1
Help! Need example of implementing a TreeCellRenderer
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
BWAHAHAHAHAHAHA! ---Murray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|