Set font attributes of text in DefaultMutableTreeNode?
posted 13 years ago
I am comparing two files, line by line, in two separate panels of a JSplitPane. After comparing, I want to change the matching lines' fonts to green and the non-matching to red, for example. I can access the individual tree elements but how do I apply and change font attributes (NOT globally as with DefaultTreeCellRenderer)? Thanks