|
Jtree - making parts editable
I have a Jtree that models a file system, aka, folders and files on my computer. I want the user to be able to edit (rename) the folders, but make it so the user can not edit (rename) the files.
I understand that you would normally make a Jtree editable by using:
tree.setEditable(true);
However, that makes ALL nodes editable, when I only want certain ones to be editable.
I can't find anything on google, can this be done?
|