JTable with file i/o and array list

后端 未结 1 1282
情歌与酒
情歌与酒 2021-01-28 10:02

In my program users input words along with their corresponding definition. An example of this user defined object is [countenance, a person\'s face]. The user\'s words are store

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-28 10:28

    If tableData refers to an instance of DefaultTableModel, you can invoke setRowCount(0) to clear the previous entries before adding new ones. You can get a reference to the table's TableModel by using the table's getModel() method.

    0 讨论(0)
提交回复
热议问题