In the model, cell editing is prohibited, but you need to set the editing resolution for the first column in the JTable, since there the button should be pressed and the rest should not be available for editing. How to do it?

public boolean isCellEditable(int rowIndex, int columnIndex) { return false; } 
  • one
    The first column is which is 0? Apparently you need to add a condition if - I think we will master it ourselves - Vartlok

1 answer 1

That's how it worked

 public boolean isCellEditable(int rowIndex, int columnIndex) { if(columnIndex == 0){ return true; } return false; }