The resulting `application' is shown in figure 9. Clicking icon1 or icon2 will result in a text printed on stdout. When the mouse cursor enters or leaves the arc (the item in the top right corner), again a text is printed.
Figure 9: An example of a canvas with items