Resizing GLJPanel

I get the following exception when I resize a GLJPanel in Windows XP w/ SP2. It happens every time you resize it to something large. As you can see, it’s nothing that my code is calling or doing. You can put just one of these components in a JFrame, resize, and witness all the fun. ;D Any thoughts?

Exception in thread “AWT-EventQueue-0” javax.media.opengl.GLException: Error creating offscreen bitmap of width 2384, height 550
at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.create(WindowsOffscreenGLDrawable.java:108)
at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.setSize(WindowsOffscreenGLDrawable.java:67)
at javax.media.opengl.GLJPanel.initialize(GLJPanel.java:919)
at javax.media.opengl.GLJPanel.handleReshape(GLJPanel.java:974)
at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:479)
at javax.swing.JComponent.paint(JComponent.java:1022)
at javax.swing.JComponent.paintChildren(JComponent.java:859)
at javax.swing.JComponent.paint(JComponent.java:1031)
at javax.swing.JComponent.paintChildren(JComponent.java:859)
at javax.swing.JComponent.paint(JComponent.java:1031)
at javax.swing.JComponent.paintChildren(JComponent.java:859)
at javax.swing.JComponent.paint(JComponent.java:1031)
at javax.swing.JComponent.paintChildren(JComponent.java:859)
at javax.swing.JComponent.paint(JComponent.java:1031)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
at javax.swing.JComponent.paintChildren(JComponent.java:859)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5111)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:285)
at javax.swing.RepaintManager.paint(RepaintManager.java:1128)
at javax.swing.JComponent.paint(JComponent.java:1008)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1797)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:734)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Your graphics card doesn’t seem to support hardware accelerated off-screen rendering (pbuffers). You’re going to get terrible performance even if this worked without throwing an exception.

It does. It renders normally when I keep the component size small enough. When I make it rather large it throws the exception.

What’s the output of “java demos.printext.PrintExt”?