I have this code to edit contents of already existing JTable:
DefaultTableModel items = new DefaultTableModel();
items.addColumn("qwe1");
items.addColumn("qwe2");
items.addColumn("qwe3");
items.addRow(new Object[]{1,2,3});
jTable1.setModel(items);
But nothing is displayed in the jTable... I can't quite figure out what I am doing wrong.
PS: I know about these: Updating JTable Updating a JTable JTable not updating But that's not exactly what I am trying to do...