how to clear JTable

前端 未结 7 731
渐次进展
渐次进展 2020-12-08 09:17

How can i clear the content of the JTable using Java..

7条回答
  •  情话喂你
    2020-12-08 10:18

    ((DefaultTableModel)jTable3.getModel()).setNumRows(0); // delet all table row
    

    Try This:

提交回复
热议问题