How to serialize the JPanel?
问题 So I have this code. And I'm trying to implement click to save on the JMenuBar and click to load. I am having trouble serializing the JPanel . How could I save the current plot view? the layout is set to AbsoluteLayout so the GroupLayout issue is not a problem. I've read through Google searches and I know this is not recommended but how else could I save and load it? package tester; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Shape; import java