SWT can be run on a web page through RAP. The video demonstration below runs a Shell window. This example is based on Example 1. You need to add the --rap parameter when starting the WEB server, such as: WebServer .dml run --rap, remember to add the model's behavior name run.
<?xml version='1.0' encoding='utf-8'?> <RwtWidget name="HelloShell" descriptors="xworker.swt.rwt.RwtWidget"> <Shell name="shell" _xmeta_id_="Shell" text="Hello World"> <FillLayout name="FillLayout"/> <Browser name="browser" url="https://www.xworker.org"/> </Shell> </RwtWidget
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号