Yeah ! But repaint() seems to be too heavy for the Main graphic thread, dont you think so ?
Well, here is a snapshot of a part of my soft, this is boxes, with a time progress bar.
When progresssbar ends, a “v” appears on the box. Box needs to be repainted to do so.
But, look, sometimes the progressbar stops the repainting, and at the end of the box there should be a repaint but it is not.
I m using 'mmLock then repaint()" to do so.
i have created a timer to go with time like in any sequencer… The progressbar are progressing one by one thanks to the timer.
i have an engine thread, that callbacks my app each time a box is finished and tell her ‘mmLock & repaint()’
I don’t understand what you’re asking… repaint() is very clearly explained in the comments, and it sounds like you need to do a bit more reading and thinking to get a grip on how it all works.