Login  Register

When switching the tab of toolwindow, the GLCanvas in Swing JPanel flickers

Posted by wiuyouke on Jun 11, 2021; 8:18am
URL: https://forum.jogamp.org/When-switching-the-tab-of-toolwindow-the-GLCanvas-in-Swing-JPanel-flickers-tp4041155.html

Hello,

When switching the tab of toolwindow, the canvas flickers.

I’m trying to build a GLCanvas in Swing JPanel, but I have a problem to switch toolwindow tab, the CLCanvas is flickering(the content of the entire screen is displayed on the canvas, and it disappears quickly)

The development scenario is to use IDEA(Intellij) for development under the window platform.

we try to inserting the following line into your main() method:

System.setProperty("sun.awt.noerasebackground", "true");

But it didn't take effect.

Please help us, Thanks.

        wuyouke