int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count;
return super.getAccessibleChildrenCount();
    public int getAccessibleChildrenCount()    {      int count = 0;      Component[] children = getComponents();      for (int i = 0; i < children.length; ++i)        {          if (children[i] instanceof Accessible)            count++;        }      return count;    }