my property editor for a priority
does not work in
a property sheet (I'm not able to change the
value. The same editor works in a TreeTableView
I believe this is a duplicate of another issue, and its already fixed
on the property panel rewrite branch - the problem was that the
editable combo box renderer was setting the text in its editor but not
laying itself out correctly.
Given that tasklist is a heavy user of TreeTableView, I'd really
appreciate it if you could test out what's on the branch - it's
planned to be merged a week from today, so I want to get it as tested
as possible (also let me know if this problem is indeed fixed on the
branch - I'm 99% sure it will be). Keyboard navigability and a bunch
of other stuff is fixed in TTV on the branch.
Here's what to do:
cvs update -r proppanel_rewrite
cvs update -r proppanel_rewrite2
(there are some unit tests and one class in Jelly branched as well,
but I presume you don't need those). Yes, the branch names are
different for the two directories, that's not a mistake.
Yes! It works! One-click editing and keyboard navigation are great.
But I also found one small issue:
With these 2 columns:
priority: combobox as the editor
done: checkbox as the editor
If I use space to toggle the "done" property the combobox get opened
Hmmm...which cell has focus when you press space - and what is the
order of the fields?
TreeTable.editCellAt is overridden to check if the property is
boolean, and if it is, toggle the value without ever instantiating an
editor - that should happen on keyPressed. I'm wondering if there's a
second keyPressed finding its way in there somehow, or something else
BTW, I did some digging around on the net for various tree table
implementations out there. It's amazing the number of them. One
interesting one belongs to a defunct mozilla project called Grendel,
but it has very little to do with Swing. I also will take a look at
yours. At the moment I'm just hoping that the band-aids in this patch
will breathe enough life into the existing tree table view that it can
survive usably until I get a few million other things off my plate.
Property panel rewrite branch merged.