O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a basic window

We will create a barebones window, without all the bells and whistles, but with enough handling to give you a good footing for the next two recipes. Here, we will create a window to display information about this text and a close button on the top far right corner.

Creating a basic window

How to do it...

Our basic window should just take a few lines of code; we'll split these into segments for easy comprehension.

  1. Instantiate the window with new Window().
  2. Configure basic settings, such as a title with setHeading() and an initial dimension with setSize().
  3. Add some content with LayoutContainer.
  4. Invoke show() on the window object, to display it.

We can create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required