if (getRowCount() < 2) return;
if (isEditing()) editingStopped(null);
  public void valueChanged (ListSelectionEvent event)  {    // Does not make sense for the table with the single row.    if (getRowCount() < 2)      return;        int y_gap = rowMargin;    int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex());    int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1);    repaint(0, y0, getWidth(), yn-y0);  }