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