Results 1 to 2 of 2
Thread: Jtree - making parts editable
- 07-26-2007, 01:21 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 2
- Rep Power
- 0
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?
- 07-27-2007, 02:34 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Breaking huge text into multiple parts.Please help..
By waNnY in forum New To JavaReplies: 2Last Post: 02-18-2008, 04:24 AM -
Selecting parts of an image
By shaungoater in forum Java 2DReplies: 1Last Post: 12-15-2007, 10:06 PM -
JTree trouble
By Alantie Vala in forum AWT / SwingReplies: 3Last Post: 07-31-2007, 11:12 PM -
how to display data in Jtree
By paty in forum New To JavaReplies: 1Last Post: 07-24-2007, 12:28 AM -
How can i set the table's column dragable/movable false and cell editable
By johnt in forum AWT / SwingReplies: 4Last Post: 05-19-2007, 11:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks