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 dialog windows

A dialog is a window derived from the Window class, thus it can participate in whatever routine a window can, but it can also do more. Dialogs are generally used to present information to the user, information for which feedback is expected, hence it has specialized button combination configurations that can be provided and used to get user feedback.

Creating dialog windows

How to do it...

  1. Create one dialog with new Dialog().
  2. Use its addText() method to place text content inside it.
  3. Invoke its show() method to display it.

A dialog window can be generated using the following code:

@Override public void onModuleLoad() { Dialog dialog = new Dialog(); dialog.setBodyBorder(false); ...

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