code: @Override
      public boolean isCellEditable(EventObject anEvent) {
          if (anEvent instanceof MouseEvent) {
              return ((MouseEvent) anEvent).getClickCount() >= clickCountToEdit;
          }
          return true;
      }
docs: isCellEditable, Returns true if anEvent is not a MouseEvent. Otherwise, it returns true if
  the necessary number of clicks have occurred, and returns false otherwise.