No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
well I'm trying [CODE] String filename = "table.file"; JTable table = new JTable(elements, header); TableModel tm = table.getModel(); try { FileOutputStream fos = new FileOutputStream(filename); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(tm); oos.flush(); oos.close(); } catch (IOException e) { e.printStackTrace(); return; }[/CODE] but it only delete the old entry and write … |
|
hey guys, I'm making a small app that make a Jable and saves the table model then loads the table model and set it to the table interface and both saving and loading is in seperate frames. [CODE] // Saving the info String ufname = Fname.getText(); String ulname = Lname.getText(); … |