Toolwindow plugin with JCEF is not repainted when switching back from other toolwindows

Hi,

I'm trying to development an IntelliJ plugin with JCEF(https://bitbucket.org/chromiumembedded/java-cef) embedded into a toolwindow, JCEF running as OSR mode. The JCEF can run well at the start time, but I hit an issue when switch toolwindow by selecting other tabs -- the JCEF stops repaint, a blank got.

FYI, I found a workaround here, when I click the 'Event Log' button of tool window, the JCEF toolwindow is split and the JCEF graphics is repaint!

As far as I know, the JCEF invoking OpenGL to paint. To adapting the Swing framework, the GLJPanel is chosen. I've tested the JCEF, OSR mode in Java Swing JTabPanel, it works well when switch the tab panel. I'm wondering if I missed something when adding a OpenGL backend painting component into IntelliJ toolwindow?


Thanks,
weiz

1
2 comments

Hi Weiz, I am happy to see that someone else is using JCEF browser in plug-in development. 
I am a newbie to java and java swing, I would appreciate if you can point me to the right direction. I have posted a question here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003414259-Tool-window-with-embedded-java-cef

Much appreciated,
Thank you

0

Please sign in to leave a comment.