Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4201917

shift-click in table with no selection causes exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2.2
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      other
    • OS:
      other

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pmilnesunw Philip Milne (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: