Documentation Contents

Troubleshooting Java Access Bridge

Java Accessibility Guide > Java Access Bridge Programmer's Guide for Assistive Technology Developers > Troubleshooting Java Access Bridge

This section describes known problems of and usage tips for those developing Assistive Technology applications for Java Access Bridge.

Known Problems

Re-Registering Menu Events Generates Duplicate Copies

If you register a menu event, unregister it, and then register it again, Java Access Bridge will generate duplicate copies of the menu event.

MenuDeselected Events Generated When Menu is Closed

You will not receive MenuCanceled (or PopupMenuCanceled) events. To determine that a menu has been closed, look for MenuDeselected events.

Usage Tips

Determining Changes in Menu Item Selection

Use State PropertyChange events to determine changes in menu item selection (for example, when the user uses the arrow buttons or keys to go up or down within a menu).

Tracking Values of GUI Elements

Use the AccessibleValue support and Value PropertyChange events to track the values of GUI elements like sliders and scroll bars.

Determining Selected Items

Use the AccessibleSelection support to determine which items are selected in containers that contain items such as lists and tables. This is more efficient than enumerating all of the children and examining their StateSet attribute to see if the Selected value is among them.

Obtaining Java Access Bridge Testing Tools

The Java Access Bridge testing tools Java Monkey and Java Ferret are not shipped with the JDK. These tools are included in Java Access Bridge 2.0.2. Download this version from Java Access Bridge Downloads.


Oracle and/or its affiliates Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved.
Contact Us