A good answer might be:

Usually "GUI" is pronounced "gooey."

Event-driven Programming

A GUI application program shows the user a graphical interface. The graphical interface consists of graphical components, such as:

  • Windows
  • Buttons
  • Menus
  • Text fields

The user interacts with the application by doing such things as:

  • Clicking on a button to choose a program option.
  • Making a choice from a menu.
  • Entering text in a text field.
  • Dragging a scroll bar.
  • Clicking on a window's close button.

In reading these notes you have been interacting with the graphical user interface of your web browser.

When you perform an action on a graphical component you generate an event. In event-driven programming the program responds to events. The program responds to events that occur whenever the user chooses, and in whatever order the user chooses.

For example, you can generate an event by clicking on this button:     Or you could click on this button:    If you want, click on the buttons a few more times, or no more times. The program has to be ready to "handle" the events however they arrive.

QUESTION 2:

How do you imagine that I wrote this web page:

  • By writing all the code that displays a button, responds when it is clicked, and displays an "alert."
  • By using HTML to ask for some button objects that do what I want.

Click Here after you have answered the question