Using Existing Applets
Applets written with JDK 1.02 can be used without modification in Visual Javascript. An applet can be embedded in a Visual JavaScript page either by:
NOTE: If an applet depends on other .CLASS or support files that are not directly referenced on the HTML page, these files are not automatically imported. You must repeat the import command for each of these extra files, and you must set the <APPLET> tag's FILEREFS attribute to list these files. FILEREFS is a quoted string consisting of a comma-delimited list of files. The list of files is used by Visual JavaScript to ensure that as the applet component is used in applications and deployed, its support files are also used and deployed.
Adding Beans to Visual JavaScript
To use a Java Beans component to build Visual JavaScript applications, follow these steps:
Manifest-Version: 1.0
Name: sunw/demo/molecule/Molecule.class
Java-Bean: True
jar cfm jar-name manifest-name bean-name1 bean-name2...
jar cfm Avogadro.jar MANIFEST.MF sunw/demo/molecule/Molecule.classIf you did not need to create a manifest file in step 3, then the command to create a JAR file takes the form:
jar cfm jar-name bean-name..
jar tf jar-name
NOTE: There are not different interfaces for data providers and data consumers.The same interface is used to send and receive data. This reduces the number of interfaces, adapters and support classes in the system.
Last Updated: 07/08/97 10:46:17