A JPanel instead of a Canvas reduces the flickering.
Thanks to JavaDev for this improvement!
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/usr/local/lib/classes/junit.jar"/>
<classpathentry kind="output" path=""/>
</classpath>