-
Bug
-
Resolution: Fixed
-
P3
-
1.1
-
None
-
1.2.2
-
other
-
other
If you shift-click in a table that has no selection it throws the following exception:
Exception occurred during event dispatching:
java.lang.IndexOutOfBoundsException: -1
at java.util.BitSet.get(BitSet.java)
at javax.swing.DefaultListSelectionModel.setLeadSelectionIndex(DefaultListSelectionModel.java:558)
at javax.swing.plaf.basic.BasicTableUI.updateSelectionModel(BasicTableUI.java:874)
at javax.swing.plaf.basic.BasicTableUI.updateSelection(BasicTableUI.java:890)
at javax.swing.plaf.basic.BasicTableUI.access$0(BasicTableUI.java:878)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(BasicTableUI.java:332)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:226)
at java.awt.Component.processMouseEvent(Component.java:2401)
at java.awt.Component.processEvent(Component.java:2249)
at java.awt.Container.processEvent(Container.java:878)
at java.awt.Component.dispatchEventImpl(Component.java:1781)
at java.awt.Container.dispatchEventImpl(Container.java:923)
at java.awt.Component.dispatchEvent(Component.java:1708)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1559)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1459)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1395)
at java.awt.Container.dispatchEventImpl(Container.java:910)
at java.awt.Window.dispatchEventImpl(Window.java:492)
at java.awt.Component.dispatchEvent(Component.java:1708)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:81)
I discussed this with Phil, and we thougt it would be reasonable if, in the case where there is no selection, a shift-click acted like a normal click.
Exception occurred during event dispatching:
java.lang.IndexOutOfBoundsException: -1
at java.util.BitSet.get(BitSet.java)
at javax.swing.DefaultListSelectionModel.setLeadSelectionIndex(DefaultListSelectionModel.java:558)
at javax.swing.plaf.basic.BasicTableUI.updateSelectionModel(BasicTableUI.java:874)
at javax.swing.plaf.basic.BasicTableUI.updateSelection(BasicTableUI.java:890)
at javax.swing.plaf.basic.BasicTableUI.access$0(BasicTableUI.java:878)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(BasicTableUI.java:332)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:226)
at java.awt.Component.processMouseEvent(Component.java:2401)
at java.awt.Component.processEvent(Component.java:2249)
at java.awt.Container.processEvent(Container.java:878)
at java.awt.Component.dispatchEventImpl(Component.java:1781)
at java.awt.Container.dispatchEventImpl(Container.java:923)
at java.awt.Component.dispatchEvent(Component.java:1708)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1559)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1459)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1395)
at java.awt.Container.dispatchEventImpl(Container.java:910)
at java.awt.Window.dispatchEventImpl(Window.java:492)
at java.awt.Component.dispatchEvent(Component.java:1708)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:81)
I discussed this with Phil, and we thougt it would be reasonable if, in the case where there is no selection, a shift-click acted like a normal click.
- relates to
-
JDK-5013988 REGRESSION: Regression-test javax/swing/JTable/ShiftClick/ShiftClick.java fails
-
- Resolved
-