-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.1.7, 6
-
x86, sparc
-
solaris_10, windows_nt
Name: skT88420 Date: 06/07/99
I am having difficulties using the JComboBox control. If I have duplicate values in the drop-down portion, and I try to arrow past them (they are right beside each other). It will not go past the first one. It just stays on the first one. When arrowing up, a similar thing happens, the second value (that you get to first) is completely skipped, and it goes to the first value.
I believe duplicates should be allowed in the box. Is there fix for this?
I am running JDK1.1.7B with Swing 1.1.
Thanks for any assitance. I tried to search for this in the bug parade, but the search engine was down.
Below is a very small, yet independent code sample of this issue.
/*********** Begin Code ****************/
public class ComboBoxTest extends javax.swing.JFrame {
public ComboBoxTest() {
String values[] = {"11111", "22222", "22222", "33333"};
getContentPane().add(new javax.swing.JComboBox(values));
}
public static void main(String argv[]) {
(new ComboBoxTest()).show();
}
}
/*********** End Code ****************/
The above code demonstrates a combobox with four items in it. All four appear in the combobox, however since the middle two are duplicates of each other, only the top one is recognized when the user selects them.
Doug Houck
SIAC-Charlotte
###@###.###
(Review ID: 84019)
======================================================================
- duplicates
-
JDK-6370535 Adding duplicate values in JCombobox , stops in navigating (using keyboard )to rest of the JCombox.
-
- Closed
-