Java JavaTM Access Bridge
for the Microsoft Windows Operating System

Version 1.0.4


Java Monkey Example
Contents

Setup

Configure your Java VM environment as directed in the Setup and Compatibility Info page.
 

Trying it out

Now that your system is configured, anytime you launch a Java application or applet using the configured Java VM, the Java Access Bridge is automatically launched as well.  Then, to use JavaMonkey, launch the JavaMonkey Windows application.  For example, to run JavaMonkey with the SimpleExample Swing program:

  cd c:\swing-1.1\examples\Simple
  runnit

and in another window

  cd c:\AccessBridge-1.0.4
  JavaMonkey

You will now have two windows open - the Simple Java application window, and the JavaMonkey window.  There are two main things you can do with JavaMonkey.  You can build a tree view of the Java applications' GUI hierarchy, and you can query the Accessibility API information of a particular element in the GUI hierarchy.
 

Building the GUI Hierarchy

Selecting Refresh Tree from the File menu will cause JavaMonkey to build a list of the top-level windows belonging to Java applications/applets, and then recursively query the elements in those windows, building a tree of all of the GUI components in all of the Java applications/applets in all of the Java VMs running in the system.
 

Examining a GUI component

Once a GUI tree is built, you can view detailed accessibility information about an individual GUI component by selecting it in the tree, and then selecting Accessibility API Panel from the Panels menu.

Copyright © 2003 Sun Microsystems, Inc. All Rights Reserved.

Please send comments to: access@sun.com
Sun