Program implements MouseListener interface on Frame object.
Possible because Frame class
The addMouseListener() is defined in the Component class