• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change text in italic for DefaultMutableTreeNode

 
teddy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i 've � JTree building with a DefaultTreeModel.
Each node are a DefaultMutableTreeNode.
I want change the text in italic for a particularly node.
I've use a DefaultTreeCellRenderer and it's ok.
Now, I want do it when I select a node. I 've made it but all nodes change with italic text !!!
help me please !!!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"teddy",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!