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

Component.getAccessibleContext() reutrns null.

XMLWordPrintable

    • 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

      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: