问题
When double click on editable cell of jtable it shown as here.

what i need is if user click mouse outside table of press a button before entering the value then existing value should be auto entered and output should be shown as follow.

Any help or suggestion would be greatly appreciated.
回答1:
for DefaultTableModel works by default
myJTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE)
;override
stopCellEditing()
a)
public boolean stopCellEditing()
b)
myJTable.getCellEditor().stopCellEditing();
c)
myJTable.getCellEditor(row, col).stopCellEditing();
来源:https://stackoverflow.com/questions/12884234/remove-focus-on-editable-jtable-cell