Editable JTree in JTreeTable
In the JTreeTable, the first column needs to be editable to allow the Jtree to expand and contract. The problem is that I cant seem to get the JTree to be non-Editable. So when you click twice on a
Tree node, the Jtree goes into edit mode.
I've tried everything that seems reasonable, but I must be missing something. I set the Jtree.editable = false, the model returns false for editing, and I even got a little hacky with the UI code just
to see if I could block the edits.
Any clue what I'm missing?
From: email@example.com [mailto:firstname.lastname@example.org]
Sent: Wednesday, August 11, 2004 3:32 PM
Subject: Re: RE: RE: RE: Setting editor/renderer for JTreeTable
> > Glad to hear that you got your existing code to
> > work with JDNC!
> I did get it to work -- but it required me to extend
> a UI class, write my own treeCellRenderer, and modify
> the source of JTreeTable itself... not exactly an
> easy experience.
> But I *am* using it :)
Why UI class? Also, we'd like you to share your experience with us in greater detail, if possible, so that we can avoid baking in some of our mistakes into the final api.
[Message sent by forum member 'rameshgupta' (Ramesh Gupta)]
If you are not an intended recipient of this e-mail, please notify
the sender, delete it and do not read, act upon, print, disclose,
copy, retain or redistribute it.
Click here for important additional terms relating to this e-mail.