java.lang.ArrayIndexOutOfBoundsException: No such child: #
843810Mar 31 2003 — edited Sep 15 2003I am getting an java.lang.ArrayIndexOutOfBoundsException: No such child: # (where # is a number usually 0, 5, or 10). The program runs fine, and this error does not seem to cause any problems; however, I would like to either know if there is a patch for this error or if someone knows a work around. I would like my program to run cleanly, so if anyone could help, I would be much appreciative. I read some where that this stems from the GridBagLaout. Is this true?
Here is the trace that I receive with the error:
java.lang.ArrayIndexOutOfBoundsException: No such child: 5
at java.awt.Container.getComponent(Unknown Source)
at javax.swing.JComponent.rectangleIsObscured(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
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)
Thank you for your time and help.