This functionality is supported only if you are using the Classic Agent.
// capture_all.t use "captureclass.inc" window JavaMainWin TestApplication tag "TestApplication" JavaJFCMenu File JavaJFCMenu Control JavaJFCMenu Menu window JavaDialogBox SplitPane tag "SplitPane" parent TestApplication JavaJFCCheckBox Horizontal JavaJFCCheckBox Enabled JavaJCFCheckBox Exit CustomWin JavaxSwingJSplitPane main() print("Calling CaptureAllClasses(TestApplication)") CaptureAllClasses(TestApplication) print("****************") print("Calling CaptureAllClasses(SplitPane, FALSE)") CaptureAllClasses(SplitPane, FALSE) print("****************") print("Calling CaptureAllClasses(SplitPane, TRUE)") CaptureAllClasses(SplitPane, TRUE)
The first two calls to CaptureAllClasses record classes for custom controls in the named window and its children. Classes are not recorded for controls whose classes are already defined, for example, controls that have predefined 4Test classes.
The third function call records classes for all controls in SplitPane and its children, including controls whose classes are already defined.