Say my JTree consists of following nodes.
new DefaultMutableTreeNode("DisplayThisTextOnly {donotdisplaystringsinhere}");
how can I hide the texts between and including {} from displaying using TreeCellRenderer
?
when I select this node, I want to be able to fetch the entire string again.
"DisplayThisTextOnly {donotdisplaystringsinhere}"
Basically my goal is to be able to fetch additional data from a given tree node without having to setObject()