ErSKS / Java

Java Training
http://khec.edu.np/
MIT License
16 stars 17 forks source link

Refresh JTable #68

Closed ErSKS closed 7 years ago

ErSKS commented 7 years ago

Code to refresh JTable: DefaultTableModel v = (DefaultTableModel) tblStd.getModel(); v.setRowCount(0);

//Load Data - You have that code on windowFormOpened()

milan604 commented 7 years ago
    DefaultTableModel t = (DefaultTableModel) table_student.getModel();
    int rowCount = t.getRowCount();

    for (int i = rowCount - 1; i >= 0; i--) {
        t.removeRow(i);
    }
jagdish4249 commented 7 years ago

01

02

03

04

05

jagdish4249 commented 7 years ago

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