title: Are JComponent objects serialized / deserialized by the JVM during runtime?
body: <h3>Problem description</h3>
  <p>Swing components implement <code>Serializable</code>. There are some historical reasons as to why that is (see <strong>Meta</strong> section).</p>
  <p>However apart from these reasons I vaguely remember having read about the JVM serializing <code>JComponent</code> objects and derivates for supposedly performance reasons(?) during runtime. This was stored firmly in my mind, after having read some source on this topic a while ago, however as I attempted to verify this I was unable to discover any sources stating something similar.</p>
  <h3>Questions</h3>
  <ul>
  <li>Does the JVM serialize / deserialize Swing components during runtime for performance reasons without explicitely calling for serialization programatically?</li>
  <li>Is there a source describing this phenomenon?</li>
  <li>If the JVM were to do that, is it then possible for standard serial UIDs (as opposed to generated ones) to cause runtime errors, when there is only one JVM and no explicit serialization / deserialization involved? Standard IDs have a form such as:</li>
  </ul>
  <pre><code>private static final long serialVersionUID = 1L;
  </code></pre>
  <p>As of now I am lead to believe that my memory is plain wrong. There is no mention of runtime serialization of <code>JComponent</code>s in any of those sources. Can this be confirmed / rejected?</p>
  <h3>Meta</h3>
  <p>Related to this question:</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it">What is a serialVersionUID and why should I use it?</a></li>
  <li><a href="https://stackoverflow.com/questions/1539915/swing-components-and-serialization">Swing components and serialization</a></li>
  <li><a href="https://stackoverflow.com/questions/441151/why-is-java-swing-serializable">Why is Java Swing serializable?</a></li>
  <li><a href="https://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html" rel="nofollow noreferrer">https://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html</a> (see serialization warning)</li>
  </ul>