Main Content

javaMethodEDT

CallJavamethod from Event Dispatch Thread (EDT)

Description

example

javaMethodEDT(MethodName,JavaObj,x1,...,xN)calls the method in the class of the Java®object array with the signature matching the argumentsx1,...,xN。MATLAB®calls the method from the Event Dispatch Thread (EDT).

javaMethodEDT(StaticMethodName,ClassName,x1,...,xN)calls the static method in classClassName

Examples

collapse all

创建一个java.util.Vectorobjectvand add astringelement.

v = java.util.Vector; javaMethodEDT('add',v,'string');

Input Arguments

collapse all

Nonstatic Java method name, specified as a string or character vector.

Example:javaMethod('DataDefinitionAndDataManipulationTransactions',T)

Data Types:char|string

Array, specified as a Java object of the class containing the method.

Java method input arguments, 1 through N (if any), required byMethodNameorStaticMethodName, specified by any type. The method argument list specifies the argument type.

Static Java method name, specified as a string or character vector.

Example:java.lang.Double.isNaN(2.2)

Data Types:char|string

Java class name, specified as a string or character vector, containingStaticMethodName

Data Types:char|string

More About

collapse all

EDT

The EDT is the Event Dispatch Thread, used in Java.

Version History

Introduced in R2009a