Login  Register

Re: NewtCanvasAWT flicker on resize

Posted by Sven Gothel on Nov 27, 2010; 11:11pm
URL: https://forum.jogamp.org/NewtCanvasAWT-flicker-on-resize-tp1979434p1979545.html

On Saturday, November 27, 2010 23:35:50 ariekenb [via jogamp] wrote:
>
> I am experimenting with putting NewtCanvasAWT inside a JInternalFrame and using many of them in an application.  This seems to work, but I notice when I resize the JInternalFrame the NewtCanvasAWT flickers badly and the contents disappear until I stop dragging.
>
> If I use GLCanvas the resize is smooth as long as I set -Dsun.awt.noerasebackground=true.  

See my remarks/changes 86c164950b0a0d351fc8af3884187b10201b6237 in regards bug #439 ..,
hence setting this property should not be necessary anymore.

> sun.awt.noerasebackground seems to make no difference for NewtCanvasAWT - I think this is because it calls disableBackgroundErase itself.

yes, after addNotify() which would work for Windows, not on X11, thanks to pointing this out,
added the same changes here as for GLCanavas, see above.

>
> Is this a known problem/limitation with NewtCanvasAWT?

hope it was, wait until you see the commit, thx.

BTW .. please follow:
 http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

ie at the very _least_ add the version dump to your email/bug-report,
so I know what you are actually refering to (source code, platform, ...).

Cheers, Sven