Monday, May 21, 2012

clear contents of a jTable

I have a jTable and it's got a table model defined like this:

javax.swing.table.TableModel dataModel = 
new javax.swing.table.DefaultTableModel(data, columns);

Does anyone know how I can clear its contents? Just so it returns to an empty table?

No comments:

Post a Comment