• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree paint issue

 
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.
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!