Serialized Form

Class javax.swing.JComponent implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
We use the ObjectInputStream "registerValidation" callback to update the UI for the entire tree of components after they've all been read in.
See Also:
ReadObjectCallback

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Before writing a JComponent to an ObjectOutputStream we temporarily uninstall its UI. This is tricky to do because we want to uninstall the UI before any of the JComponents children (or its LayoutManager etc.) are written, and we don't want to restore the UI until the most derived JComponent subclass has been been stored.
Serialized Fields

_bounds

java.awt.Rectangle _bounds

accessibleContext

javax.accessibility.AccessibleContext accessibleContext
--- Accessibility Support --- JComponent will contain all of the methods in interface Accessible, though it won't actally implement the interface - that will be up to the individual objects which extend JComponent.

alignmentX

java.lang.Float alignmentX

alignmentY

java.lang.Float alignmentY

ancestorNotifier

javax.swing.AncestorNotifier ancestorNotifier

autoscroller

javax.swing.Autoscroller autoscroller

border

javax.swing.border.Border border

changeSupport

javax.swing.event.SwingPropertyChangeSupport changeSupport

clientProperties

java.util.Hashtable clientProperties

flags

int flags

listenerList

javax.swing.event.EventListenerList listenerList

maximumSize

java.awt.Dimension maximumSize

minimumSize

java.awt.Dimension minimumSize

paintImmediatelyClip

java.awt.Rectangle paintImmediatelyClip

preferredSize

java.awt.Dimension preferredSize

vetoableChangeSupport

java.beans.VetoableChangeSupport vetoableChangeSupport


Class javax.swing.JComponent.AccessibleJComponent implements Serializable

Serialized Fields

accessibleContainerHandler

java.awt.event.ContainerListener accessibleContainerHandler

this$0

JComponent this$0