if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();  this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;  if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS && scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED && scrollbarDisplayPolicy != SCROLLBARS_NEVER) throw new IllegalArgumentException("Bad scrollbarDisplayPolicy: " + scrollbarDisplayPolicy);  if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) { hAdjustable = new ScrollPaneAdjustable (this, Scrollbar.HORIZONTAL); vAdjustable = new ScrollPaneAdjustable (this, Scrollbar.VERTICAL); }  wheelScrollingEnabled = true;   setSize(100,100);
this(SCROLLBARS_AS_NEEDED);
ScrollPane(int scrollbarDisplayPolicy){  if (GraphicsEnvironment.isHeadless ())    throw new HeadlessException ();		this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;  if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS      && scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED      && scrollbarDisplayPolicy != SCROLLBARS_NEVER)    throw new IllegalArgumentException("Bad scrollbarDisplayPolicy: " +                                       scrollbarDisplayPolicy);  if (scrollbarDisplayPolicy != SCROLLBARS_NEVER)    {      hAdjustable = new ScrollPaneAdjustable (this, Scrollbar.HORIZONTAL);      vAdjustable = new ScrollPaneAdjustable (this, Scrollbar.VERTICAL);	}  wheelScrollingEnabled = true;  // Default size.  setSize(100,100);}