You can't ... Or you will have to use MouseListener and to repaint your
Canvas (for example by adding a thin border giving a "selected look") each
time the user "select" or "deselect" it ...
Can you tell us a little bit more on what you are trying to do ? I think
the Canvas is not the good widget for selection ... may be we can suggest
you with an other widget ..