I've a JButton I've encoded with XMLEncoder, and all was well for me, until I tried adding an ActionListener. Now, I get this message
java.lang.InstantiationException: Temp$1
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement JButton.addActionListener(Temp$1);
Continuing ...
Does anyone know why this is happening, or how it can be prevented?