void cancelEditing(){
  if (TABLE.isEditing()) {
    TableCellEditor editor=TABLE.getCellEditor();
    editor.cancelCellEditing();
  }
}

void cancelEditing ( ) { if ( TABLE . isEditing ( ) ) { TableCellEditor editor = TABLE . getCellEditor ( ) ; editor . cancelCellEditing ( ) ; } }
cancels all editing of fields in the tree and table .
