Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of AccessibleContext in Java Swing?

I've seen a lot of examples which use
getAccessibleContext().setAccessibleDescription(...)
to set some "magic" description.

What is the use of this description? Where can it be seen and how should it support accessibility?

Why setDescription(...) is not used?

Additionally, what is your opinion / experience with Java accessibility stuff?

like image 658
ivan_ivanovich_ivanoff Avatar asked Jun 02 '09 13:06

ivan_ivanovich_ivanoff


1 Answers

I haven't actually used Swing's accessibility facilities in my applications (and I probably should), but I presume that it will aid in the use of screen readers and other technologies which to improve the accessibility of an application.

From the Accessibility and the Swing Set article:

If an application fully supports the Java Accessibility API, it can be compatible with, and friendly toward, screen readers, screen magnifiers, and other kinds of assistive technologies.

The linked article goes in to some depth about the accessibility features of Swing and the Accessibily API.

like image 169
coobird Avatar answered Oct 12 '22 11:10

coobird