if (row == (getRowCount() - 1) && col >= data.getLastRowSize()) { return false; } int max = getColumnCount() - 1; return col != 0 && col != max;
return true;
  public boolean isCellEditable(int row, int col)  {    if (row == (getRowCount() - 1) &&      col >= data.getLastRowSize())    {      return false;    }    int max = getColumnCount() - 1;    return col != 0 && col != max;  }