Hi,
In my application, I need to use a few JInternalFrame (JIF) and in each JIF I have a GLJPanel to display the required drawing. I’ve written a test program that will make JIF with GLCanvas or GLJPanel or JPanel depending on the selection. I encountered the following 2 problems :
- When JIF is in the Maximum state for GLJPanel, when iconized will get the following error message but no problem for GLCanvas and JPanel
java.lang.NullPointerException
at net.java.games.jogl.GLJPanel$4.run(GLJPanel.java:483)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
- When more than one JIF containing GLJPanel eg. JIFA and JIFB, clicking JIFA so that it is the active frame. The GLJPanel not shown; instead the java logo without any text is shown at the task bar. This problem also occurred when you Maximized or Restore the JIF. No such problem if you use GLCanvas. I found a workaround is to call ensureUpdate() for componentResized() and internalFrameActivated(). Am I doing the right thing in ensureUpdate() ?
I’m using jogl from the release builds 2005 1.1.1 July 12. My java is 1.4.2_08 running on XP. I would appreciate if some one could run my test (given in the attachment; some of the code is cut and paste from http://www.genedavissoftware.com/books/jogl/ljogl_ch1.html) and see whether they encounter the same problem as I did. Note : since I can’t attach *.java file, I’ve renamed them to *.txt.
Thank You.