In Swing TableModel you fire various events to let the GUI (Graphic User Interface) know your data have changed. You do this by calling methods in AbstractTableModel.
TableModel Change Notification | |
---|---|
Method | Purpose |
fireTableDataChanged | All cell values in the table’s rows may have changed. This will not suffice if the number of columns changes or you are just getting started going from 0 to N columns. See fireTableStructureChanged. |
fireTableRowsDeleted | rows in the range [firstRow, lastRow], inclusive, have been deleted. |
fireTableRowsInserted | rows in the range [firstRow, lastRow], inclusive, have been inserted. |
fireTableRowsUpdated | rows in the range [firstRow, lastRow], inclusive, may have been updated. |
fireTableStructureChanged | Number of column may have changed, column headers may have changed, type of data in a column may have changed. Also use after you first populate a table since you went from 0 to N columns. Not needed if number of rows changes. |
This page is posted |
http://mindprod.com/jgloss/fire.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\fire.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.145.99.15] |
| |
Feedback |
You are visitor number | |