• Post Reply Bookmark Topic Watch Topic
  • New Topic

Set font attributes of text in DefaultMutableTreeNode?  RSS feed

 
Gazza Bee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!