### Tcl & Java Package Commands

java::new : Allocate Java objects.
java::call : Invoke static Java methods.
java::field : Get and set Java field values.
java::instanceof : Determine if an object is an instance of a Class.
java::prop : Manipulate Java Bean properties.
java::bind : Bind a Tcl script to a Java event.
java::event : Query event objects in a Java event callback.
java::info : Introspect Java objects and classes.
java::null : Get a handle to the null Java reference.
java::isnull : Test a handle to see if refers to null.
java::lock : Lock a Java object so that it can not be garbage collected.
java::unlock : Unlock a Java object that had been locked previously.
java::autolock : Manage automatic locking of Java references during interactive sessions.
java::load : Load a Tcl extension defined in a Java class.
java::defineclass : Convert binary .class data into a java.lang.Class object.
java::getinterp : Get a handle to the tcl.lang.Interp object.
java::throw : Throw a Java exception.
java::try : Catch a Java exception.
java::cast : Cast a Java object from one type to another.
java::import : Import a Java class name so that fully qualified name need not be used.
javaObj : Invoke instance methods on an object.
javaArrayObj : Invoke methods on an array object.

### Topics

Using the Java package : Getting started with the java package.
Class Loading : How Java classes are loaded from Tcl.
Signatures : How to specify Java method and constructor signatures.
Conversions : How Tcl values are converted to Java objects and vice versa.
Garbage Collection : How objects are referenced and garbage collected.
Determining Event Parameters : Dealing with arguments to Java event handlers.
Callback Scripts : Returning values from and dealing with errors in callback scripts.

    Copyright © 1997-1998 Sun Microsystems, Inc.