In my JTable, I have a column where all cells are editable to let the user enter values.
Once those values have been saved in the database, I'd like to refresh the JTable and set non editable the cells with a value to prevent all modification. Blank cells must remain editable.
I'm not sure on how to implement this (as the whole column is supposed to be editable).
Any idea ?
Joined: Dec 01, 2009
Use public boolean isCellEditable(int row, int column) method of table or the same method of your TableModel and return false for the non editable values.
Joined: May 01, 2008
Sorry but I actually don't see...
The matter is to make specific cells dynamically uneditable. How is it possible in the TableModel ? Any example, please ?