http://gambaswiki.org/bugtracker/edit?object=BUG.848&from=L21haW4- Comment #3 by Fabien BODARD: sorry ... no in fact... but read the code in gb.gui.base it will help you on optimizing your code with the paint class. and don't use an integer for a boolean flag..