DefaultTableModel model DefaultTableModel jTable1 getModel for int nic

1
2
3
4
DefaultTableModel model = (DefaultTableModel)jTable1.getModel();
for (int i = 0; i < nickNamesList.size(); i++) {
model.addRow(new String[] {nickNamesList.get(i)});
}