JComboBox should have a contains(Object) method

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.5
    • Component/s: client-libs
    • sparc
    • solaris_2.5.1



      Name: rk38400 Date: 04/24/98


      JComboBox should have a contains(Object) method,
      just as it has helper methods such as removeItem
      and getItemAt. Currently, the only way to determine
      if an item is in the JComboBox is to loop through
      all the items and compare one by one.

      This is especially important because removeItem
      throws an IllegalArgumentException if it is
      used to remove an item that is not in the JComboBox.
      (Review ID: 28850)
      ======================================================================

            Assignee:
            Tom Santos (Inactive)
            Reporter:
            Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: