Modifying JTree node text before editing



Is it possible to be able to modify the text of a JTree node before it is edited? I want to allow the user to only modify a part of the node text but I can't see any method to set the text in the tree cell editor classes. At the moment the entire node text that is displayed is passed into the editing control. There's a prepareForEditing() method in DefaultTreeCellEditor that looks like the right time to set the text but how can I modify the text being edited?

--
And loving it,

-Q
_________________________________________________
Qu0llSixFour@xxxxxxxxx
(Replace the "SixFour" with numbers to email me)

.