The Generic JWAVE Applet

Simple Applet Example

Figure 2-1 2D plot displayed using the generic JWAVE applet

The HTML Code


TIP: You can find
examples similar to this one in the directory:
(UNIX)VNI_DIR/classes/jwave_demos/JWaveApplet

(Windows)VNI_DIR\classes\jwave_demos\JWaveApplet

Example 2-1 Simple HTML code for calling the generic JWAVE applet.

TIP: The generic JWAVE applet accepts a number of PARAM tags, many more than are used in this example. Refer to the Javadoc reference on the JWaveApplet class for detailed information on all of the generic applet's PARAM tags. For information on Javadoc, see
Using the JWAVE Javadoc Reference.

The JWAVE Wrapper Function

Example 2-2 A minimal JWAVE wrapper function

Example Summary

Using JavaScript to Control the Applet


TIP: There are many manuals available on JavaScript in bookstores. For online information about JavaScript, refer to the JavaScript Guide on the Netscape Web site at:

TIP: Visual Numerics has provided several applet demonstrations, including the one used in this example, with your JWAVE installation. For information on running the demonstration applets, see
Running the Applet Demonstrations.

The HTML File with JavaScript


TIP: For detailed information on the generic applet methods that can be used with JavaScript, refer to the Javadoc page on
JWaveApplet (in the jwave package). For information on Javadoc, see Using the JWAVE Javadoc Reference.
Example 2-3 HTML file with JavaScript calls

TIP: Because JavaScript supports form objects, you can use JavaScript to create interactive GUIs for your client applets without any Java programming. For information about more complex JavaScript demonstrations created by Visual Numerics, see
Running the Applet Demonstrations.

The JWAVE Wrapper

Example 2-4 JWAVE wrapper function, TESTPLOT

The GETPARAM Function


NOTE: Detailed information on the parameters and keywords of the GETPARAM and GET_NAMED_COLOR functions are available in the PV-WAVE online help system and in
Appendix A, JWAVE Wrapper API.

The GET_NAMED_COLOR Function

Running the Applet Demonstrations


NOTE: To run these
applets, you must have a working installation of JWAVE and the JWAVE Manager must be running on the server. To run these demonstrations, you must also have a browser that supports JDK 1.1.

Summary





Copyright © 1999, Visual Numerics, Inc. All rights reserved.