-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
fcs
-
generic, x86, sparc
-
generic, linux, solaris_2.6
-
Not verified
Name: aaR10142 Date: 01/04/2001
AccessibleJComboBox.getAccessibleSelection(int) method incorrectly returns
null, in JDK1.4.0beta-b40. It works correctly in previous builds.
See example
---------- Tests.java ----------------
public class Test {
public static void main(String argv[]) {
JComboBox o = new JComboBox();
o.addItem("Test");
AccessibleSelection c =
o.getAccessibleContext().getAccessibleSelection();
o.setSelectedIndex(0);
System.out.println("getAccessibleSelection(0) returns "
+ c.getAccessibleSelection(0));
}
}
------------- JDK1.4.0beta-b40 output-------------------------
getAccessibleSelection(0) returns null
------------- JDK1.4.0beta-b35 output-------------------------
getAccessibleSelection(0) returns javax.swing.JList$AccessibleJList$AccessibleJListChild@462851
======================================================================
- duplicates
-
JDK-4615789 AccessibleJComboBox.getAccessibleSelection(int) method works incorrectly
-
- Closed
-
- relates to
-
JDK-4400038 JCK13:api/javax_swing/JComboBox/AccessibleJComboBox,MerlinB45,x86,Sparc
-
- Closed
-