I'm trying to make my classes Serializable. All of my classes are, but still it throws me NotSerializableException for some other classes that I can't find it's usages (e.g. com.sun.java.swing.plaf.windows.XPStyle, WClipboard).
What can I do and how can I bypass these classes when serializing or make them Serializable?
SOLVED
The problem was in LookAndFeel I have used in my JFrames and JDialogs (problem with XPStyle
). Second one (WClipboard
), it was used by third party class I got from here. This class uses Clipboard.
I made Clipboard field transient
and LookAndFeel I couldn't manage, just by deleting it.