A simple AWT Canvas engine template and example