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

DefaultListModel and DefaultComboBoxModel should support addAll (Collection c)

XMLWordPrintable

    • b13
    • x86
    • windows_xp



      Name: jk109818 Date: 04/03/2003


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      The default list models (DefaultListModel and
      DefaultComboBoxModel) in Swing do not provide a function for
      multiple element insertion. Specifically, they do not
      support the bulk adding of all of the elements in a
      Collection. Adding the elements of a Collection
      individually requires more code and, since each addition to
      a model causes an event notification, is slower.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 181289)
      ======================================================================

            kaddepalli Krishna Addepalli
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: