Hi Don!
It's like you're watching me or something...
I could get everything to work fine for when I just wanted the boolean checkboxes things. The problem came in when I decided to get adventurous with the selection of my nodes.
My user objects are called NewsNodes. And every NewsNode has the isSelectable property. Now if (myNewsNode.isSelectable()) then show the checkbox but if (!mynewsNode.isSelectable()) then show a blank cell (like a blank jtextfield.
So I fiddled and got the thing to have blanks and now the true false
string in the cell. So it can differentiate with if the cell should be showing something. The problem is that it's not in a textbox and not in a checkbox.
Here's the code...
The "hello" was to check that it wasn't getting there. (Which it's not).
And TableRowEditorModel was a piece of code that I found on the net that uses a hashtable to hols the different editors that are required for the different rows. (But the acutall editing of the cells isn't working either, but I'll get to that later when the check boxes work.
I was thinking that this is a total mission to do, but then I remembered that we decided to go this way instead of making a JEditorPane be able to interpret VBScript and JavaScript. Hopefully this is still simpler than that. (And it will probably make me cry if you tell me otherwise!!
)
Thank you again.
Take care,
Rachel