Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8278604: SwingSet2 table demo does not have accessible description se…
…t for images

8278526: [macos] Screen reader reads SwingSet2 JTable row selection as null, dimmed row for last column

Reviewed-by: ant, kizune, pbansal
  • Loading branch information
savoptik committed Dec 17, 2021
1 parent b46f0b0 commit 8fbe1724e0f783132a65c45503addad9d98a329e
Showing 1 changed file with 9 additions and 0 deletions.
@@ -768,4 +768,13 @@ void updateDragEnabled(boolean dragEnabled) {
footerTextField.setDragEnabled(dragEnabled);
}

@Override
public ImageIcon createImageIcon(String filename, String description) {
ImageIcon imageIcon = super.createImageIcon(filename, description);
AccessibleContext context = imageIcon.getAccessibleContext();
if (context!= null) {
context.setAccessibleName(description);
}
return imageIcon;
}
}

1 comment on commit 8fbe172

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 8fbe172 Dec 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.