How can I refresh the contents in the JTable?

Jesper Berglund

If you have added or removed something from the table, from the DefaultTableModel or your own TableModel, the easiest whay to tell that the data in the model has changed is to call JTable.tableChanged(TableModelEvent e). In the TableModelEvent you specify which rows and/or columns that has been updated.