I import a CSV file into a DefaultTableModel, one column is formatted as double, so far so good. But if I edit a cell from this column (double) in the JTable, after that this cell is no longer a double. Now it is a string.
How can I change the type of the edited cell in the TableModel?
I know that I can parse a string to double with double value = Double.parseDouble(str);, but how can I ensure that this happens after editing a cell?
Do I need a new TableModel-class like:
class myTableModel extends DefaultTableModel { }
Thanks for your help.
for example
or