Jack Luk wrote:How would I do these things?
1) save a table model into the database after clicking on a button
Well, you know your model. So, read through the model (say iterate) and make
JDBC calls to take appropriate action.
Jack Luk wrote: 2) how do you know that the table model is dirty? (has been changed)
You need to listen to table model changes via TableModelListener.