Before this problem did not arise, I do not understand what to do. Initially, the table has only headers, but after adding a record, only an empty table remains.
Code:
public NewJFrame() { initComponents(); DefaultTableModel d = new DefaultTableModel(); d.addRow(new Object[] {1, 2}); jTable1.setModel(d); }