As was suggested to me in an earlier post, I am using two methods (reDraw(bytes) and repaint()) to paint paintable canvases.
I use reDraw(bytes) to apply a dynamic property to the paintable canvas which contains the byte data, and then repaint() uses the byte data to draw the image.
However, after changing the byte data to"None" (to display a blank image) it seems that my manual call of “repaint()” is not working (no errors, none of my print statements in repaint execute).
I have tried calling it from various locations such as from within the component itself (self.repaint()) and externally as well (event.source.parent.getComponent(“blah blah”).repaint()) and it seems that neither works.
It is not until repaint() is called automatically (for example when I scroll the screen) that the image updates to my “no image” default. Is there any reason that manually calling repaint may not work?