Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree paint issue  RSS feed

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am constructing a tree and trying to drill down to some particular node programatically. I am able to drill down and highlighting the node in the tree but other nodes in the same level are not painted properly. The other nodes are loosing the text. Can somebody give some idea on this problem.

Thanks
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you are using a custom cell renderer for the highlighting.
Here's one way you could do this.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!