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

JTable with SINGLE_SELECTION still allows multiple selection via dragging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • client-libs



      Name: rlT66838 Date: 07/26/99


      Single selection mode works well in a JTable except for one specific case, where the user can still select multiple cells.

      1. Start by creating a JTable
      2. call setSelectionMode(ListSelectionModel.SINGLE_SELECTION)

      Now from the user's standpoint:
      3. select a single row
      4. notice that single selection mode works flawlessly if you try to select another row, or control-select another row, or shift-select another row.
      5. BUT, in one case you can still select multiple cells:
      5a. select a single row again
      5b. now hold the control key
      5c. with the control key still held, start a drag operation inside the selected row. That is, click on the selected row and drag to other cells.

      At this point, on our machines, the JTable has multiple selected rows.

      Bug report 4106272 is identical to this but it is marked closed and fixed, even though it is still present.
      (Review ID: 85706)
      ======================================================================

            Unassigned Unassigned
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: