I\'m currently trying to implement a JPopupMenu in my JTable that allows the unlocking of a cell for editing using
@Override public void actionPerformed(ActionE
but where in my code should I change the cell back to uneditable when focus is lost? -
You could:
override the setValueAt(...) method of your TableModel to make a cell uneditable once the data is changed.
setValueAt(...)
use a TableModelListener It will generate an event when the data of a cell is updated.
TableModelListener