Geoff Jefferson wrote:I'm catching an I/O Exception.
Geoff Jefferson wrote:I caught it here. I suppose I had better learn to output the stack trace.
So what do you want to do with the file when you read it back in?
I suspect you don't really want to save the MyTableInterface object, right?
Maybe you can mark that member variable "transient", so it's not saved, and then re-attach it to the MyTableInterface when the file is loaded back in?
Even though MyTableInterface extends JPanel and therefore implements Serializable, it is definitely not serializable. It has some input and output streams as fields, and those are definitely not serializable - and therefore neither is MyTableInterface. Consider transient like Ernest suggested.