Closed ErSKS closed 7 years ago
DefaultTableModel t = (DefaultTableModel) table_student.getModel();
int rowCount = t.getRowCount();
for (int i = rowCount - 1; i >= 0; i--) {
t.removeRow(i);
}
Update_table() function ko sql ma SELECT * FROM student
ko satta chaine colum matra nikaleni huncha
download rs2xml.jar from http://www.4shared.one/file/kfogUJTTba/rs2xml.html
Code to refresh JTable: DefaultTableModel v = (DefaultTableModel) tblStd.getModel(); v.setRowCount(0);
//Load Data - You have that code on windowFormOpened()