ButtonCanvasExample -- implementing a simple custom button as a subclass of Canvas.

Experiment:



The source.