remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1;
remove(editorComp); repaint(editorComp.getBounds()); editorComp = null;
  public void editingCanceled (ChangeEvent event)  {    if (rowBeingEdited > -1 && columnBeingEdited > -1)      {        if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField)          {            remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited));            setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited);          }        rowBeingEdited = -1;        columnBeingEdited = -1;      }    editorTimer.stop();    editorComp = null;    cellEditor = null;    requestFocusInWindow(false);    repaint();  }