java JTable刷新

2024-12-27 17:45:14
推荐回答(1个)
回答1:

AbstractTableModel model = (AbstractTableModel) myTable.getModel();
model.fireTableDataChanged();

参照 API : http://docs.oracle.com/javase/7/docs/api/javax/swing/table/AbstractTableModel.html