#副標=JAVA的AJAX開發工具(1) #大標=Google Web Toolkit簡介 #眉標=AJAX #作者=文/沈炳宏 =========box程式1========= set path=%JAVA_HOME%\bin;%GWT_HOME% mkdir HelloGWT ==========end========= =========box程式2========== cd\HelloGWT C:\HelloGWT>projectCreator -eclipse GWTProject Created file C:\HelloGWT\.project Created file C:\HelloGWT\.classpath C:\HelloGWT> applicationCreator.cmd –eclipse GWTProject com.runpc.gwt.client.HelloGWT Created directory C:\HelloGWT\src Created directory C:\HelloGWT\src\com\runpc\gwt Created directory C:\HelloGWT\src\com\runpc\gwt\client Created directory C:\HelloGWT\src\com\runpc\gwt\public Created file C:\HelloGWT\src\com\runpc\gwt\ HelloGWT.gwt.xml Created file C:\HelloGWT\src\com\runpc\gwt\ public\HelloGWT.html Created file C:\HelloGWT\src\com\runpc\gwt\ client\HelloGWT.java Created file C:\HelloGWT\HelloGWT.launch Created file C:\HelloGWT\HelloGWT-shell.cmd Created file C:\HelloGWT\HelloGWT-compile.cmd ===========end============ =======box程式3======== ========end========= ======box程式4======== package com.runpc.gwt.client; import com.google.gwt.core.client.EntryPoint; … public class HelloGWT implements EntryPoint { public void onModuleLoad() { final Button button = new Button("Click me"); final Label label = new Label(); button.addClickListener(new ClickListener() { public void onClick(Widget sender) { if (label.getText().equals("")) label.setText("Hello World!"); else label.setText(""); } }); RootPanel.get("slot1").add(button); RootPanel.get("slot2").add(label);   } } =========end======== ======box程式5======= =======end========