Java Java TM Access Bridge
for the Microsoft Windows Operating System

Version 2.0.1


Java Ferret Example
Contents

Setup

Setup and Compatibility Info

Trying It Out

JavaFerretJavaFerretJavaFerretSwingSet2 Demo

  Go to C:\Program Files\Java\jdk1.5.0_02\demo\jfc\SwingSet2
  Double click on the file SwingSet2.jar

In Windows Explorer:

  Go to C:\Program Files\Java Access Bridge
  Double click on the file JavaFerret.exe

You now have two windows open: the SwingSet2Demo Java application window, and the JavaFerret window.  JavaFerret has three interesting menus: "UpdateSettings" "JavaEvents" and "AccessibilityEvents".  The items in these menus allow you to query Java applications in a variety of ways.
 

UpdateSettings Menu

Update from Mouse

Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost) when the mouse has stopped moving, and then queries the Java Access Bridge for the Accessible object underneath the mouse, dumping the output into the scrolling window.

Update with F2 (Mouse HWND)

Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost), and then queries the Java Access Bridge for the Accessible object of the HWND underneath the mouse, dumping the output into the scrolling window.

Update with F1 (Mouse Point)

Determines the (x,y) coordinate of the mouse (assuming the JavaFerret window is topmost), and then queries the Java Access Bridge for the Accessible object underneath the mouse, dumping the output into the scrolling window.
 

JavaEvents Menu

Track Mouse Events

Register with the Java Access Bridge for all Java 'Mouse Entered' events, and upon receiving one, query the object which was entered by the mouse and dump the output into the scrolling window. Note: If the mouse is moved quickly, there may be some delay before the displayed information is updated.
 

Track Focus Events

Register with the Java Access Bridge for all Java 'Focus Gained' events, and upon receiving one, query the object which received the focus and dump the output into the scrolling window.
 

Track Caret Events

Register with the Java Access Bridge for all Java 'Caret Update' events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window.  Note: Since objects that contain carets are virtually by definition objects which are rich text objects, this won't seem as responsive as the other event tracking options.  In real use, one would make fewer calls of the Java Access Bridge in Caret Update situations (e.g. just get the new letter, word, sentence at the caret location), which would be significantly faster.
 

Track Menu Selected | Deselected | Canceled Events

Register with the Java Access Bridge for the various Menu events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window.
 

Track Popup Visible | Invisible | Canceled Events

Register with the Java Access Bridge for the various Popup Menu events, and upon receiving one, query the object in which the caret was updated, and dump the output into the scrolling window.
 

Track Shutdown Events

Register with the Java Access Bridge to receive a 'Property Changed' event when a Java application terminates.

AccessibilityEvents Menu

Track Name Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Name" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Description Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Description" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track State Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "State" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Value Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Value" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Selection Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Selection" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Text Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Text" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Caret Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Caret" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Visible Data Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "VisibleData" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Child Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "Child" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track ActiveDescendent Property Events

Register with the Java Access Bridge for all Java 'Property Changed' events specifically on Accessible objects in which the "ActiveDescendent" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.
 

Track Table Model Change Property Events

Register with the Java Access Bridge for all 'Property Changed' events specifically on Accessible objects in which the "TableModelChange" property has changed, and upon receiving one, dump the output into the scrolling window, along with information about the property that changed.

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

Please send comments to: access@sun.com
Sun
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve

Java 8 banner (182) IoT banner RHS (160)