posted 21 years ago
I have a jtree in which I pre-select a node. On selecting, I add some text to the node. I have MyTreeCellRenderer which extends DefaultTreeCellRenderer class. I use setText() to paint the tree node. But, when the new text is added, it is not visible. It shows like
<b>100 ...</b> instead <b>100 ABC</b>
But, when I expand the node, the new text is shown properly. Any ideas why is this happening? I think the jtree is not repainting.