Hey there, I'm attempting to store a JTable's TableModel by Serializing a DefaultTableModel object.
The API says that DefaultTableModel implements the Serialization interface, but when I try and run my program
I get the following exception.
java.io.NotSerializableException: javax.swing.JTable$CellEditorRemover.
Anyone get any ideas?
public void storeTableModel(DefaultTableModel model) { ObjectOutputStream oos = null; try { oos = new ObjectOutputStream(new FileOutputStream(FILENAME)); oos.writeObject(model); } catch (Exception e) { e.printStackTrace(); } try { oos.close(); } catch (IOException e) { } }