background image
<< Testing the Contents of a Java Panel | about the Robot Java Open API >>
<< Testing the Contents of a Java Panel | about the Robot Java Open API >>
to create a proxy interface
Support for Custom Java Components
14-13
Support for Custom Java Components
With Java, you can create your own user-defined classes. For example, you can create
a new kind of button class that acts the same way as an existing AWT Button. If you
derive your new button from the AWT button class, Robot can map the new class
correctly.
Beyond the standard class libraries, Robot supports custom Java components in
other class libraries, such as those available with IBM Visual Age and other IDEs.
This extended Java support is provided through the Robot Java Open API.
By mapping a standard SQABasic object type (such as a push button or Java panel) to
a custom Java component, and by using the Java Open API to create a proxy interface
for the custom component, you can use Robot to test the custom component.
You map standard SQABasic object types with custom Java components in the Java
Class Mapping tab of the Robot General Options dialog box, as shown here:
To display the Java Class Mapping tab in Robot:
Click Tools > General Options. Click the Java Class Mapping tab.