Example (contd.)
4. Implement all the methods (even if it is empty) of the interface (why?)
5. This application needs only MousePressed and MouseReleased for line color selection and MouseDragged for drawing lines.
6. Finally an adapter class that handles window closing.