void () { if (myPatternsTable.isEditing()) { TableCellEditor editor = myPatternsTable.getCellEditor(); if (editor != null) { editor.stopCellEditing(); } } if (myFiltersTable.isEditing()) { TableCellEditor editor = myFiltersTable.getCellEditor(); if (editor != null) { editor.stopCellEditing(); } } }