VTK + Java + Mac + Swing

Hi all, currently I am struggling to get VTK to run with Java support on macOS. I have successfully compiled VTK with openJDK 11.

In ccmake I have selected the following options for the compilation.
picture

Unfortunately, I currently get the “NSWindow drag regions should only be invalidated on the Main Thread!’” error. As I read above, I need to include jogl and include the -XstartOnFirstThread jvm argument.

I am using IntelliJ and the -XstartOnFirstThread I have included here:

What is the best way to insert jogl now? Should I enable the VTK_JAVA_JOGL_COMPONENT option in ccmake and then insert the jogl library in IntelliJ?