private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException {
  GraphicsEnvironment.checkHeadless();
  ObjectInputStream.GetField f=s.readFields();
  scrollbarDisplayPolicy=f.get("scrollbarDisplayPolicy",SCROLLBARS_AS_NEEDED);
  hAdjustable=(ScrollPaneAdjustable)f.get("hAdjustable",null);
  vAdjustable=(ScrollPaneAdjustable)f.get("vAdjustable",null);
  wheelScrollingEnabled=f.get("wheelScrollingEnabled",defaultWheelScroll);
}

private void readObject ( ObjectInputStream s ) throws ClassNotFoundException , IOException , HeadlessException { GraphicsEnvironment . checkHeadless ( ) ; ObjectInputStream . GetField f = s . readFields ( ) ; scrollbarDisplayPolicy = f . get ( "scrollbarDisplayPolicy" , SCROLLBARS_AS_NEEDED ) ; hAdjustable = ( ScrollPaneAdjustable ) f . get ( "hAdjustable" , null ) ; vAdjustable = ( ScrollPaneAdjustable ) f . get ( "vAdjustable" , null ) ; wheelScrollingEnabled = f . get ( "wheelScrollingEnabled" , defaultWheelScroll ) ; }
reads default serializable fields to stream .
