diff --git a/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m b/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m index 1dd4c2fb4b5b..33e838b070a1 100644 --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m @@ -896,6 +896,14 @@ - (BOOL)accessibilityIsIndexAttributeSettable return NO; } +- (NSInteger)accessibilityIndex { + int index = 0; + if (fParent != NULL) { + index = [fParent accessibilityIndexOfChild:self]; + } + return index; +} + /* * The java/lang/Number concrete class could be for any of the Java primitive * numerical types or some other subclass.