Whats the relationship between a JTable
, TableModel
and TableData
? If i just modify the TableData
, does that also change the data display on the JTable
component or I have to call some method to sync the two. I have looked at this, but it does not explicitly tell or show me the relationship in terms of updates
When you change a value in the TableModel data, you must fire this event. eg. changing the value of one cell, you call fireTableCellUpdated(row, col);
.
Look at this more specifically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With