title: Java SWT - Repainting a canvas after a resize
body: <p>I have a shell that contains a canvas, which in turn draws some text in its PaintListener. The problem is, when I dynamically reduce size of the shell with its setBounds method (this is going to happen every once in a while), the text doesn't get redrawn. In fact, the canvas' PaintListener doesn't get called again.</p>
  
  <p>Is there a way to force repaint? I've tried calling canvas.redraw() but this does not work.</p>