The editor does a good job of building simple GUI programs. However, a program isn’t interesting if the user can’t interact with it. The most interesting part of GUI programs is writing the code that responds to events. As usual, I’ll illustrate with a simple program.
The silly program illustrated in Figures 6.13 and 6.14 illustrates how to add basic interactivity to your code. Again, most of the code is automatically generated for you, but you should know what is happening behind the scenes.