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 buttons with text and icons

Buttons are often simple widgets that allow the user to execute an action by clicking on it, such as submitting an HTML form with its Submit button. However, we can do more with buttons nowadays beyond form submission; we can even give them a complete makeover with the various text, icon, and alignment options available with a GXT button.

Creating buttons with text and icons

How to do it...

A GXT button is a very simple widget; without all the bells and whistles it is a one-liner.

ButtonBar btnBar = new ButtonBar(); Icons ICONS = GWT.create(Icons.class); // Text button Button textBtn = new Button("Btn Text"); textBtn.setToolTip("This is a simple ...

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