In my implementation of JTable. I have to keep some columns editable and some columns UN-editable so I have override isCellEditable –
@Override
public boolean isCellEditable(int row, int col) {
if (col == uneditableColumn) {
return false;
}
return bEdit;
}
Now my requirement is to allow edit the cell only on Double click i.e. if user double clicks on cell then only it comes into editable mode. For this – I will have to make your own CellEditor and override.
public boolean isCellEditable( EventObject e )
Can someone suggest if can be possible using –
public boolean isCellEditable(int row, int col)
Please help –
you have look at DefaultCellEditor#clickCountToStart
for CellEditor or methods override isCellEditable (AbstractTableModel)
for DefaultTableModel could it be