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

JList DefaultListModel is slow if adding lots of items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.1.6, 1.2.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: