J
Jason Cavett
So I have implemented my own tree cell editor (called
ProjectTreeCellEditor) by extended DefaultTreeCellEditor so I could do
a couple customized things upon editing.
However, when I created the ProjectTreeCellEditor, I also implemented
the CellEditorListener interface so, when editing is cancelled or
stopped, I can update the actual data. However, I was reading that
the data update should not take place in the cell editor (which makes
sense since its data is returned via the "cellEditorValue"). What's
confusing, though, is that the same book I was reading said its rare
that you need to implement your own CellEditorListener. Is this
true? That seems odd since I don't know how data would be set to the
actual object once the editing has stopped.
Can anybody provide insight to this. (What I have now does work, but
this new information has me a little puzzled.)
ProjectTreeCellEditor) by extended DefaultTreeCellEditor so I could do
a couple customized things upon editing.
However, when I created the ProjectTreeCellEditor, I also implemented
the CellEditorListener interface so, when editing is cancelled or
stopped, I can update the actual data. However, I was reading that
the data update should not take place in the cell editor (which makes
sense since its data is returned via the "cellEditorValue"). What's
confusing, though, is that the same book I was reading said its rare
that you need to implement your own CellEditorListener. Is this
true? That seems odd since I don't know how data would be set to the
actual object once the editing has stopped.
Can anybody provide insight to this. (What I have now does work, but
this new information has me a little puzzled.)