private void writeObject(ObjectOutputStream s) throws IOException {
  doSwingSerialization();
  s.defaultWriteObject();
  AWTEventMulticaster.save(s,componentListenerK,componentListener);
  AWTEventMulticaster.save(s,focusListenerK,focusListener);
  AWTEventMulticaster.save(s,keyListenerK,keyListener);
  AWTEventMulticaster.save(s,mouseListenerK,mouseListener);
  AWTEventMulticaster.save(s,mouseMotionListenerK,mouseMotionListener);
  AWTEventMulticaster.save(s,inputMethodListenerK,inputMethodListener);
  s.writeObject(null);
  s.writeObject(componentOrientation);
  AWTEventMulticaster.save(s,hierarchyListenerK,hierarchyListener);
  AWTEventMulticaster.save(s,hierarchyBoundsListenerK,hierarchyBoundsListener);
  s.writeObject(null);
  AWTEventMulticaster.save(s,mouseWheelListenerK,mouseWheelListener);
  s.writeObject(null);
}

private void writeObject ( ObjectOutputStream s ) throws IOException { doSwingSerialization ( ) ; s . defaultWriteObject ( ) ; AWTEventMulticaster . save ( s , componentListenerK , componentListener ) ; AWTEventMulticaster . save ( s , focusListenerK , focusListener ) ; AWTEventMulticaster . save ( s , keyListenerK , keyListener ) ; AWTEventMulticaster . save ( s , mouseListenerK , mouseListener ) ; AWTEventMulticaster . save ( s , mouseMotionListenerK , mouseMotionListener ) ; AWTEventMulticaster . save ( s , inputMethodListenerK , inputMethodListener ) ; s . writeObject ( null ) ; s . writeObject ( componentOrientation ) ; AWTEventMulticaster . save ( s , hierarchyListenerK , hierarchyListener ) ; AWTEventMulticaster . save ( s , hierarchyBoundsListenerK , hierarchyBoundsListener ) ; s . writeObject ( null ) ; AWTEventMulticaster . save ( s , mouseWheelListenerK , mouseWheelListener ) ; s . writeObject ( null ) ; }
writes default serializable fields to stream . writes a variety of serializable listeners as optional data . the non - serializable listeners are detected and no attempt is made to serialize them .
