java.lang.ArrayIndexOutOfBoundsException: 2 >= 2

java.com | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Bug ID: JDK-6495411 JTabbedPane throws Exception at java.util.Vector.elementAt

    java.com | 10 months ago
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
  2. 0

    call setVisible on a JInternalFrame from a other thread

    Oracle Community | 2 decades ago | 807582
    java.lang.ArrayIndexOutOfBoundsException: No such child: 3 at java.awt.Container.getComponent(Container.java, Compiled Code) at javax.swing.JComponent.rectangleIsObscured(JComponent.java, Compiled Code) at javax.swing.JComponent.paint(JComponent.java, Compiled Code)

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      2 >= 2

      at java.util.Vector.elementAt()
    2. Java RT
      SystemEventQueueUtilities$ComponentWorkRequest.run
      1. java.util.Vector.elementAt(Vector.java:432)
      2. javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(BasicTabbedPaneUI.java:1483)
      3. javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(BasicTabbedPaneUI.java:1528)
      4. javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabWidth(BasicTabbedPaneUI.java:1546)
      5. javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(BasicTabbedPaneUI.java:2286)
      6. javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(BasicTabbedPaneUI.java:2263)
      7. javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.layoutContainer(BasicTabbedPaneUI.java:2178)
      8. java.awt.Container.layout(Container.java:1401)
      9. java.awt.Container.doLayout(Container.java:1390)
      10. java.awt.Container.validateTree(Container.java:1473)
      11. java.awt.Container.validateTree(Container.java:1480)
      12. java.awt.Container.validateTree(Container.java:1480)
      13. java.awt.Container.validate(Container.java:1448)
      14. javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
      15. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
      15 frames