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

Appendix A. Event Handling — Making Those GUIs Do Something

We want to see how to get GUIs to respond to user actions such as clicking on a button, typing text, or dragging the mouse. These user actions are called events, and responding to them is called event handling.

The event loop

In a GUI-based program, all processing revolves around something called the event loop. The process is as follows:

  1. The program sits there, waiting for the user to do something.
  2. The user does something (generates an event).
  3. The program responds in some way.
  4. Go back to step 1.

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