Arbortext Command Language > Functions by Alphabetical Listing > java_instance_modal
  
java_instance_modal
ret = java_instance_modal(object, method[, arg1[, arg2[, arg3[, ...arg20]]]])
This function is identical to the java_instance function except that Arbortext Editor creates a new thread for the Java call and puts itself in a mode as if a modal dialog box is displayed. The primary advantage to this function is that the Arbortext Editor window will be able to refresh while the Java call is running. The disadvantage of this function is that it is significantly slower than using the java_instance function.
This function executes Java code by calling method within object and passing it the provided arguments arg1, arg2, arg3, and so on. Up to 20 arguments can be passed to the called method. The value returned by the java_instance function is the returned value from the called method.
The called method must be an instance method. Use the java_static function to call static methods and the java_constructor function to call a constructor.
Related Topics
java_instance function
java_constructor function
java_static function
append_javaclass_path function
set javaclasspath command