This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242022

Summary: ArrayIndexOutOfBoundsException: -1
Product: platform Reporter: alied <alied>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207700
Attachments: stacktrace

Description alied 2014-02-17 19:25:43 UTC
Build: NetBeans IDE Dev (Build 201402140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
alied: after running tests and show code coverage report.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.Vector.elementData(Vector.java:730)
   at java.util.Vector.elementAt(Vector.java:473)
   at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:294)
   at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:693)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(BasicTableHeaderUI.java:709)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paint(BasicTableHeaderUI.java:685)
Comment 1 alied 2014-02-17 19:25:44 UTC
Created attachment 145325 [details]
stacktrace
Comment 2 cesar_pinheiro 2014-03-25 20:26:04 UTC
I have the same problem.
I understood that this problem occurs when I put the JPopupMenu in TableHeader.
When I click with the right button, the event is consumed by the JPopupMenu and the TableHeader don't adjust because the release event is consumed by the JPopupMenu.