I want to delete all the rows of DefaultTable.I found two common ways to delete them on internet but none of them works in my case because those methods does not exist in my
Ypu can write a method
public void clearTable() { getTableModel().setRowCount(0); }
then call this method from the place that you need to clear the table