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.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
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?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
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.
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|