Answer:

Yes, for the figure the mouseOver event is ignored. (Some browsers do not ignore this event. They change the icon used for the mouse pointer to show that there is a new set of options.)

No, for the button the mouseOver event changes the mouse pointer from an arrow to a hand. (Some browsers don't do this. Of course, when you click the button this is another kind of event, and is not ignored, either.

Three Parts of a GUI Program

Radio as GUI

A GUI program consists of three types of software:

  1. Graphical Components make up the Graphical User Interface.
  2. Listener methods receive the events and respond to them.
  3. Application methods do useful work for the user.

The graphical components are Swing objects. You may use them without change or may extend them to make your own classes. Listener methods and application methods are Java methods that you write. Listener methods respond to events by calling application methods. Application methods are ordinary Java methods that perform useful computations. They receive data from the GUI and send data to the GUI to be displayed, but are not usually themselves concerned with the user interface.

Your Web browser has components (such as the "back" and "forward" buttons), listener methods that receive events (such as a click on the "back" button) and application methods that do useful things (such as moving backward or forward one page).

To write a GUI application, keep these three types of software separated (while keeping the big picture in mind). In a big software project an entire team of programmers is assigned to each of the tasks.

QUESTION 6:

Consider a radio and its user interface. Match each part of the radio with its analogous part in a GUI application.

Radio Similar GUI Parts
Cabinet, speaker, control knobs, and dial.
Electronics parts connected to speaker, dial, and knobs.
Receiver electronics and audio amplifier.