PPT Slide
cross-class communications
In this version, events are
handled by a Control Panel
In such a case, how to send events to Canvas?
Cross-class communications!
The control panel has a reference
to the DrawCanvas, and the canvas
has a reference to the ControlPanel
Alernatively (ver #2), both have reference to Applet, which provides reference to components
Design #1: Class Structure