-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
This recipe creates a panel to place the menu bar, banner, sidebars, footer, and the main application layout. Ext GWT provides several options to define the top-level layout of the application. We will use the BorderLayout function. We will add the actual widgets after the layout is fully defined. The other recipes add the menu bar, banner, sidebars, and footers each, one-by-one.
Open the Sales Processing System project.
Let's list the steps required to complete the task.
Go to File | New File.
Select Java from Categories, and Java Class from File Types.
![]() |
Click on Next.
Enter HomePage as the Class Name, and com.packtpub.client as Package.
![]() |
Click on Finish.
Inherit the class ContentPanel. Press Ctrl + Shift + I to import the package automatically. Add a default constructor:
package com.packtpub.client;
import com.extjs.gxt.ui.client.widget.ContentPanel;
public class HomePage extends ContentPanel
{
public HomePage()
{
}
}
Write the code...
Change the font size
Change margin width
Change background colour

