Troubleshooting

Creating Accessible Components

How can I support the accessibility framework in new components, so that assistive technologies can automatically learn about them?

You incorporate accessibility support in a new component's class by using the AccessibleRole and AccessibleState classes. Sun's online Java Tutorial provides a good demonstration on how to accomplish this task. Check out this demonstration at http://www.javasoft.com/tutorial/uiswing/misc/access.html.

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.