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

DefaultListSelectionModel slow with huge lists

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      A DESCRIPTION OF THE REQUEST :
      If you have a huge JTable, and want to select a whole column by clicking on the header button, then it takes a long time for DefaultListSelectionModel to change the selection.

      The slowness is caused by the unoptimized implementation of DefaultListSelectionModel.setSelection(). It changes the selection by calling private changeSelection(), which does a simple loop from the first affected index to the last affected index.

      It wouldnt be too hard for you to change the implementation of setSelection() to work faster.

      JUSTIFICATION :
      JTable works well with huge data. It's a shame that it is let down by DefaultListSelectionModel.
      ###@###.### 2004-12-09 20:28:59 GMT

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: