Hmm, looks like the ‘edit click count’ field isn’t doing what it’s supposed to. Try this, in configureEditor
:
from javax.swing import DefaultCellEditor, JTextField
from java.lang import String
from java.awt.event import MouseEvent
class CustomCellEditor(DefaultCellEditor):
def isCellEditable(self, event):
if isinstance(event, MouseEvent):
return DefaultCellEditor.isCellEditable(self, event) and event.getClickCount() >= 2
if self.data.getColumnType(colIndex) == String:
return {'editor': CustomCellEditor(JTextField())}