Hello,
I’m facing a problem with multi-monitor support and JOGL v1.1.1a: I’m using JOGL to draw some maps inside a Swing JFrame using the GLJPanel component. The logic I’m using works perfectly on a single-monitor setup and also on the primary screen of a multi-monitor setup, however as soon as I move the window to the secondary monitor the problems start appearing. On the second monitor I apparently do not get any callbacks in my GLEventListener class, and as such the OpenGL window turns ‘gray’ (nothing is drawn on top of it). If I move the window to the primary monitor again, the GLJPanel remains gray. As soon as I resize the window again, the data is drawn again on the primary window.
It looks to me a problem of the GLJPanel not properly being ‘triggered’ for the second monitor.
What I’ve tried / discovered so far:
- the problem does not occur with GLCanvas, this one works perfectly.
- no exceptions are thrown by JOGL.
- using a debugger I’ve found out that my own implementation of the Animator (loosly based on FPSAnimator and extending from Animator) still gets the proper triggers the ‘display’ method of the superclass (Animator).
- the problem is not hardware/configuration related, I managed to reproduce it on any system I have, although always on Windows (32 bit or 64 bit).
Any suggestions on what I should try further to get GLJPanel properly working on a secondary monitor in a multi-monitor setup?
Thanks,
Kenny