TableCellEditor for multiple columns
(AbstractDocument) textField.getDocument()


This is bad practice.

I recommend that you do one of these options:


The simple way would be to create a method toAbstractDocument(Document document)
The better way would be to create a field at TextField class such as ? extends Document document.