Modifying JTree node text before editing
- From: "Qu0ll" <Qu0llSixFour@xxxxxxxxx>
- Date: Thu, 26 Jul 2007 22:55:45 +1000
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)
.
- Prev by Date: Re: JTextArea append method doesn't always append
- Next by Date: Re: JTextArea append method doesn't always append
- Previous by thread: How to get the simplest Swingx app to work
- Next by thread: JScrollBar problems
- Index(es):