On Fri, 17 Sep 2021 08:15:54 GMT, Sergey Bylokhov <[email protected]> wrote:

> my question was why the first CopyArea is ignored? 

This is a RepaintArea's behavior. clearRect() is called before paint() because 
shouldClearRectBeforePaint is true for Canvas. Then, if 2nd paint() is called 
and paint() does nothing, blank window will be drawn.
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/sun/awt/RepaintArea.java#L235

-------------

PR: https://git.openjdk.java.net/jdk/pull/5491

Reply via email to