I'm doing a project that requires Jtable. However I'm using 3 Jtables. How am I able to make the third table cell editable while the first 2 remain uneditable?
The first 2 table are in a same Jpanel, while the third table on the other hand is on another Jpanel.
Here is my code for my FoodTableModel :
public boolean isCellEditable(int row, int column) {
return true;
}
@Override
public void setValueAt(Object value, int row, int col) {
data[row][col] = value;
fireTableCellUpdated(row, col);
}