I would like my JTable to use different cell editors for different cells in a single column. Think of a two-column label-value table like:
Name | Value
--------------+--------------------------------
Identifier | ST33442 (string editor)
Purchase Date | 7/7/10 (custom calendar editor)
Status | Broken (combo editor)
How can I build the editor dynamically? Something like a TableCellEditorFactory would be perfect.
You’ve got to implement your own cell editor and assign it to the column. You should probably do the same with a cell renderer (so for instance booleans will be rendered as a check box instead of “true”/”false”).
N.B.
DatePickerCellEditoris from SwingX