I have some DefaultMutableTreeNode\'s. While the programm\'s running, I can change the text and revalidate it. But if the text is too long, so for example the text \"tested\
you have to read tutorial about JTree, and examples how to use TreeCellRenderer
if you'll real question then please update your question and add there the code in SSCCE form