Thanks for your tests. I'm glad to know it improved the program in your case.
I tried both parameters under Ubuntu 18.04.
With -Dsun.java2d.opengl=true, the application wasn't correctly drawn in my case, with some black zones.
-Dsun.java2d.pmoffscreen=false didn't apparently change anything.

For those interested, you may find more Java parameters related to drawing here.