JList DefaultListModel is slow if adding lots of items

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 1.1.6, 1.2.0
    • Component/s: client-libs
    • generic, x86
    • generic, windows_nt



      Name: paC48320 Date: 03/20/98


      Create a JList control and use a DefaultListModel
      for its model. I needed to add a lot of items (`200)
      as the result of a database query. I used
      addElement, for each item. Unfortunately, each
      addElement call resulted internally in a fireIntervalAdded
      call which was very slow when there were ~200 items.
      (Review ID: 26883)
      ======================================================================

            Assignee:
            Swingtraq Swingtraq (Inactive)
            Reporter:
            Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: