-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
beta
-
sparc
-
solaris_2.5.1
-
Not verified
Name: aaC67449 Date: 10/22/99
Component.getAccessibleContext() reutrns null, but should return the
AccessibleContext of this Component (AccessibleAWTComponent object)
javadoc says: "
public AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this Component
Returns:
the AccessibleContext of this Component
"
------------------ example -----------
import java.awt.Component;
public class Test{
public static void main(String argv[]) {
Component c = new Component(){};
if (c.getAccessibleContext()!=null) {
System.out.println("Passed");
} else {
System.out.println("Failed. The method returns null");
}
}
}
---------------- output ----------
Failed. The method returns null
======================================================================