JTable custom editor - update currently selected cell
beagle2Nov 28 2010 — edited Nov 29 2010I have a JTable and a custom renderer / editor for a column in my JTable. I have a bit of a problem where if I select a cell that uses the custom editor, and the object on the model is updated from another thread, it doesn't refresh the value in my editor to reflect the new value. Is there a way to force the editor to be re-drawn with the new object?
I'm setting the new value on the model using .setValueAt(); and then call fireTableCellUpdated() but the editor still shows the old object.
Any ideas?
Thanks,
BBB