http://www.java-forums.org/java-2d/42378-force-graphics-sync.html