I have been trying to trigger an update when a change on a cell of the JTable.
There are some columns which has a JComboBox as cell editor.
Upon the initializing of the class, I have set the model of the JTable using DefaultTableModel with the proper fields.
After, I have set the JTable with a TableModelListener which triggers any update on the JTable cell.
Your response is highly appreciated.
JTable table = new JTable();
table.getModel().addTableModelListener(new TableModelListener() ... );
I think I have got the answer with regards to updating the cell.
But I have a problem with display the details.
I used DefaultTableModel and override the setValueAt method which triggers a fireTableCellUpdated()
But the problem now is that, the updated data, row won't display anything except "".