Skip to main content

Custom Renderer in JTree does not re-render...

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
tdanecito
Offline
Joined: 2005-10-10

Hi All,

I discovered that when you have a custom renderer in a JTree for a node and replace the model it redraws the tree but the node renderers do not call doLayout(). After useing Google I discovered this issue was reporeted by others but no solution. It shows up on JTree as the label text with a ... so you might have Transp... instead of Transportation for a label on the node of a JTree.

Any ideas how to solve this?

Thanks,

-Tony