List of usage examples for javax.swing JTable getCellEditor
public TableCellEditor getCellEditor(int row, int column)
row
and column
. From source file:fll.subjective.SubjectiveFrame.java
/** * Stop the cell editors to ensure data is flushed *//*from ww w .ja va 2 s.c om*/ private void stopCellEditors() { final Iterator<JTable> iter = _tables.values().iterator(); while (iter.hasNext()) { final JTable table = iter.next(); final int editingColumn = table.getEditingColumn(); final int editingRow = table.getEditingRow(); if (editingColumn > -1) { final TableCellEditor cellEditor = table.getCellEditor(editingRow, editingColumn); if (null != cellEditor) { cellEditor.stopCellEditing(); } } } }