-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
All the required tools and technologies are installed. Now, we will create the Java Web project using the Google Web Toolkit Framework in NetBeans.
Make sure that GWT and GlassFish are installed, the GlassFish server is added, and the GWT4NB plugin is installed in NetBeans.



C:\Program Files\gwt-2.0.3, or any other location where you have installed it), and name the GWT Module as com.packtpub.Main:
After following the aforementioned steps, a NetBeans project structure with some sections containing the following files has been created:
WEB-INF
sun-web.xmlweb.xmlwelcomeGWT.html
com.packtpub
Main.gwt.xmlcom.packtpub.client
MainEntryPointGWT2.0.3-gwt-user.jar
gwt-dev.jar
gwt-servlet.jar
JDK1.6
GlassFish v3

A directory and file structure is created, as shown in the following screenshot:

A default code is given in the MainEntryPoint.java file. That's why, we can run the project to see a basic output. To run the project, right-click on Sales Processing System under Projects and then click on Run, as shown in the following screenshot:

The following events take place:
\Sales Processing System\build\web directory.http://localhost:8080/Sales_Processing_System/.
Change the font size
Change margin width
Change background colour