|
-
Java + JTree + TreeNode sizing issues
Hey there.
I have a jTree object which i have populated with custom defaultMutableTreeNodes and all is working very well.. However, when i come to rename one of these nodes i get problems with it trimming half of the new name.
ie
initial name
TreeNode
rename to (MainTreeNode)
results in
MainT...
If i then hit f2 to rename it again, it displays the entire name (MainTreeNode) without problem and will stay like this when clicking off that particular node.

How can i get it to resize the treenode correctly the 1st time around? Rather than having to click f2 or rename again to see the whole name?
The jTree structure is database driven and it is using the interface TreeModelListener to update that database when a rename takes place.
Cheers for any help.
Jon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|