A reference to the package name used with the Packages keyword:
where JavaPackage is the name of the object's Java package. If the package is in the java, netscape, or sun packages, the Packages keyword is optional.
Although the packages and classes contained in a JavaPackage are its properties, you cannot use a for...in statement to enumerate them as you can enumerate the properties of other objects.
The properties of a JavaPackage are the JavaClass objects and any other JavaPackage objects it contains.
Suppose the Redwood corporation uses the Java redwood package to contain various Java classes that it implements. The following code creates the JavaPackage red:
var red = Packages.redwood
Previous Contents Index Next
JavaArray, JavaClass, JavaObject, Packages
Content is available under these licenses.
Last Updated September 28, 2000