JXTreeTable : String truncated in labels
I use a data model, with labels as renderer into a JXTreeTable. (simply extends DefaultTreeCellRenderer)
I edit an element that has its name displayed, for "exemple MyNode" to "MyVeryLongNode"
Then the tree is updated and shows something like "MyNode..."
After some research, it appears that the trouble is in the BasicTreeUI. This is well explained here :
My first attempt was to force the size of the JLabel Component, with no success...
After reading the source code of BasicTreeUI, it's logical that my first attempts doesn't work :)
So, questions are :
How to find a way to change the BasicTreeUI ?
It seems impossible because the JTree is private and changes are so deep to change it on the fly
Is it possible to force the component to reevaluate the size ?
The BasicTreeUI uses an Abstract Method Factory pattern, nodeDimensions is "lazy" initialized
and it seems impossible to reset the field.
The design of the BasicTreeUI doesn't allow to be modified after it has been initialized...
Is there an other way ?
Thanks for answers