private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException {
  GraphicsEnvironment.checkHeadless();
  acc=AccessController.getContext();
  s.defaultReadObject();
  appContext=AppContext.getAppContext();
}

private void readObject ( ObjectInputStream s ) throws ClassNotFoundException , IOException , HeadlessException { GraphicsEnvironment . checkHeadless ( ) ; acc = AccessController . getContext ( ) ; s . defaultReadObject ( ) ; appContext = AppContext . getAppContext ( ) ; }
reads the menu component from an object input stream .
