Getting NotSerializableException on a serializable object
问题 Basically, I've written a program that paints shapes onto the screen, and saves each of the shapes into an ArrayList. What I want to do is figure out how to save the ArrayList to a file, so that I can call it back up later and edit the already existing shapes. So I've been having some trouble figuring out why exactly I keep getting a NotSerializableException when I made the object Shape serializable already. Below is the save portion of my code, and the Shape object. save.addActionListener