Search code examples
javaswingfontsjtableeditmode

How to override Default cell editor in a jTable?


I want to change the properties of DefaultCellEditor in a jTable so that I can customize the font type, size, color, background color etc of a cell in edit mode.


Solution

  • table.setDefaultEditor(Object.class, customEditor)