Same code as before
Overridden processMouseEvent method in
Listing 6 is essentially the same
- as that shown for the local class in
Listing 4,
- except that it produces a different message on the screen
- when the user clicks the button.
Clicking the middle button in Figure 2
- produces the screen output
- shown by the sixth line in Figure 4.