Interacting and Inspecting: Inspecting Components
To inspect the return values for any variable or method of a component:
- If the Current State shown in the Record/Playback window is not Stopped, click the Stop button.
- Click Interact.
An Inspect button appears in the lower portion of the button panel.
- Click Inspect.
This brings up the Select for Inspection screen in the right portion of the window.
- Click on the component within your application or applet that you want to inspect.
You can navigate through components within a frame using the arrow keys. The up arrow moves you from a child component to its parent, while the left and right arrows move between sibling components.
The text area of the Select an object to inspect panel shows the declaration for component you selected (see Figure 5-1).

Select for Inspection--first screen
- Click Show simple methods and data members.
The screen changes to show a list of the simple methods and data members (including inherited members) for the component. The list is sorted alphabetically by method and member name.
- Navigate to the field or method you want to inspect and click the returns button for that item.
The return value is displayed to the right of the button. See Figure 5-2.
Note - You need to rely on your judgement when querying a method for its return value. When you click returns, JavaStar executes the method you selected. If the method has a side effect, this may cause a problem.

Select for Inspection--second screen
- To select another component, click Previous or Reset.
You can now repeat Step 3 through Step 5.
- To close the Select for Inspection window, click Close or Finish.
This keeps you in Interact mode but closes the window. You can click Stop to leave Interact mode.
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.