Reputation: 626
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.
Upvotes: 0
Views: 1649
Reputation: 11327
You can set your own cell editor which is probably derived from the DefaultCellEditor
. Use
table.getColumnModel().getColumn(column).setCellEditor(myEditor);
To set your editor into the table.
Upvotes: 1