Shell

    Shell is the window model of SWT and the basic entry model of SWT. The path of Shell is xworker.swt.widgets.Shell.

    The following XML is an example of a Shell model. SWT can run on the WEB. You can click here to run the model. After running, a window will be opened with a browser showing the XWorker homepage.

<?xml version="1.0" encoding="utf-8"?>

<Shell name="shell" text="Hello World!" descriptors="xworker.swt.widgets.Shell"
  width="800" height="600">
<FillLayout name="FillLayout"></FillLayout>
<Browser name="Browser" url="https://www.xworker.org"></Browser>
</Shell>

    The following GIF video shows the above example being edited and run.

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号