Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ArrayIndexOutOfBoundsException: No such child: #

843810Mar 31 2003 — edited Sep 15 2003
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2003
Added on Mar 31 2003
5 comments
1,148 views