JTree refresh

When a Node in the JTree contains text that is wider than the JTree width, is there a way to refresh the JTree to resize itself to show the full text.Regards.
[179 byte] By [hande123] at [2007-9-26 1:17:36]
# 1
When you add the node that has the longer text, you should then resize the tree.
schillj at 2007-6-29 0:47:21 > top of Java-index,Archived Forums,Java Programming...
# 2
There is a method JTree.treeDidChange() that updates the width of a cell so the ... don't appear.
adamfinucane at 2007-6-29 0:47:21 > top of Java-index,Archived Forums,Java Programming...
# 3

> There is a method JTree.treeDidChange() that updates

> the width of a cell so the ... don't appear.

Hi all,

I've tried the above and it doesn't work for me.

One solution is to call the DefaultTreeModel.nodeChanged(TreeNode) to refresh each node but then also, it doesn't seem to be working smoothly though... as in I still get the ellipsis (...).

I haven't been able yet to find the specific situations where it doesn't work.

Anyone has got a better idea?

Thanx,

Al

alCaponi at 2007-6-29 0:47:21 > top of Java-index,Archived Forums,Java Programming...