Tree Customization: Cont’d
The javax.swing.tree class has a few awkward design features:
Cell rendering is handled on a tree-wide basis; making customization of icons more challenging.
Solution: interface TreeCellRender is available
Subclassing the DefaultTreeCellRenderer is difficult;
key variables used in the interfaced method are private.
Solution: jar -xf src.jar DefaultTreeCellRenderer.java and rewrite the class