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

JComboBox should have a contains(Object) method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: