Login  Register

WindowImpl Repaint

Posted by SunnY on Jun 26, 2018; 3:25pm
URL: https://forum.jogamp.org/WindowImpl-Repaint-tp4038966.html

Hello Julien,

i have following Problem with an application which has this Structure:

JFrame
   |
   | ------JPanel
   |            | ------ NewtCanvasAWT
   |                                  | ------ GLWindow
   |
   |
   |
   | ------ JDialog
   
   
Normally when i move the JDialog,which is in front of the NewtCanvasAWT, or press any buttons in it, the GLWindow doesn't get a repaint event as i would expect it.
But on one specific computer, when moving the JDialog, the Newt EDT Thread triggers repaint events on the GLWindow and i have no idea why.
This is the stacktrace where the Event comes from.

        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawableBase.java:215)
        at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4401)
        at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:3372)
        at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:3318)
        at jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:4715)
        at jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(DisplayDriver.java:-2)
        at jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:124)
        at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:753)
        at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:672)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:347)
       
So do you have any clue where this RepaintEvent can come from or how i can prevent it? Because as i said it happens only on one specific Coumputer.


Florian