-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.1.5
-
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)
======================================================================
- duplicates
-
JDK-4181643 DefaultComboBoxModel does not have a "contains()" method.
-
- Closed
-