AbstractTableModel isCellEditable method is not called

29 Views Asked by At

I am trying to edit a column with class type Product. But sometimes the isCellEditable() is not called. Sometimes it works as expected.

  @Override
  public boolean isCellEditable(int row, int column)
  {
    boolean isEditable = false;
    if (getColumnClass(column).equals(Product.class))
    {
      isEditable = true;
    }
    return isEditable;
  }

The class object is also created when the isCellEditable() needs to be called.

0

There are 0 best solutions below