I display the result of the query in the jTable using DefaultTableModel, but after that I need to completely clear the jTable and output the result of a completely different query that has a different number of columns and their contents. So, how to make this very cleaning?

  • one
    Can the code show? - arg

1 answer 1

in the loop tableModel.removeRow(i); . there is also a rowsRemoved(TableModelEvent e) method rowsRemoved(TableModelEvent e)

  • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky