6 Replies Latest reply: Oct 26, 2007 4:26 PM by 807600 RSS

    Array out of bounds exception grrrrrr

    807600
      Ok normally this is a straight forward job, i look at the error message, find where the error occurred and its usually a straight forward fix or some silly mistake...HOWEVER..this time the error message is not quite so helpful:
      Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 6
           at javax.swing.JTable$1.getValueAt(JTable.java:667)
           at javax.swing.JTable.getValueAt(JTable.java:2638)
           at javax.swing.JTable.prepareRenderer(JTable.java:5652)
           at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
           at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)
           at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1770)
           at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
           at javax.swing.JComponent.paintComponent(JComponent.java:763)
           at javax.swing.JComponent.paint(JComponent.java:1027)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JViewport.paint(JViewport.java:747)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JComponent.paintChildren(JComponent.java:864)
           at javax.swing.JComponent.paint(JComponent.java:1036)
           at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
           at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
           at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:285)
           at javax.swing.RepaintManager.paint(RepaintManager.java:1128)
           at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
           at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
           at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:723)
           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)
      it doesnt give me any pointers whatsoever where the error has occurred and this one part of my program goes through so much code, i have no idea what i have done wrong.
      Has anyone else had an error message similar to mine and if so how can i fix it.

      iv been over the code about a million times and i cant find anything remotely like what its telling me...
      please help, thanks!