Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable custom editor - update currently selected cell

beagle2Nov 28 2010 — edited Nov 29 2010
I 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
This post has been answered by walterln on Nov 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2010
Added on Nov 28 2010
7 comments
62 views