Generating Output Demonstrations > Java Applet Demonstrations

Generating Java Applet Demonstrations


You can generate Java demonstrations that can be published to the Web or emailed to others. You can also choose to automatically create a sample HTML page that can simply be opened to play the demo.

A Java applet is a small Internet-based program written in Java, a programming language for the Web. The applet is able to run in HTML and is usually embedded in an HTML page on a Web site and can be executed from within a browser. Most browsers contain a Java Virtual Machine (JVM) and are thus capable of running applets.

Access the Java output dialog box by choosing Demo > Create Java Demo.

The Generate Demo dialog box lets you specify various parameters for a Java demo, as follows:


 

Option Description
Output Filenames The path where the Java demo should be generated, including partial filename, as 3 files can be created for each demo: .jar, .html and .dcd. You can click the [...] button to select the destination folder.
Generate Specify if you want to create the JAR file and the HTML page (.html file) that will play the generated Java demo.
The .html file is a sample Web page that will load the Java applet. You can edit this file to include additional text and graphics, or you can copy the HTML into another Web page where you  would like to include your demo.
The .jar file is the the main Java application that will play the demo. This file is same for all demos and can be reused. For example you can create several demos and then modify the HTML to point to one common JAR file. This way the Web browsers will not need to re-download different JAR files when playing several different demos.
Theme Graphical interface of the demo player control section, placed at the bottom of each demo and containing the play, pause, stop, and other buttons Select None if you do not want player controls in your demo.
Bits per pixel The number of bits of information stored per pixel. More bits indicate more colors that can be represented.
One "color" is reserved for transparency index.
 
Bits Maximum Colors
24 16 million
8 255
7 127
6 63
5 31
4 15
3 7
2 3


The higher the number of bits (colors) the better quality of Java demos. However, decreasing the number of colors results in more compact, smaller file sizes.

Adaptive Palette If specified, DemoWorks will optimize the color palette based on the most commonly used colors across all frames, which will results in more accurate representation of the demonstration.
This process takes longer but results in higher quality of generated demos in color.
If not specified, DemoWorks will utilize the static palette of evenly distributed colors or shades of gray.
When choosing grayscale output you may want to experiment with using the adaptive palette, as often the standard grayscale palette may produce better results, and faster as well.
Grayscale Converts all colors into gray tones based on color intensity of each pixel. The resulting benefit is usually a better representation of the demonstration (excluding the colors) achieved with less bits-per-pixel and therefore smaller file size.
Dimensions (Size, Width, Height) Select the output demo size if you want it to be different from the size originally captured. You may select either a percent ratio of the captured size, or select Custom and then specify the exact demo dimensions in pixels.
Fast generation - Max compression Compression selector where you can specify if you prefer the demo to be created quickly but resulting in larger file size, or use higher compression at the cost of taking little more time to create the demo. The users who view the demo will not see the difference, however a demo with low compression (fast generation) will take longer time to load into user's browser.
Bitmapped effects If specified, DemoWorks will convert the demo effects (balloons and captions) into images that will be placed within the generated Java applets. This will result in exact representation of the effects on users computers. It will also improve demo compatibility, for example if end users do not have all the fonts installed on their computers, which you might have used in your demo.
This option can be turned off if you like to decrease the demo size, however keep in mind that users may see slightly different representation of the demos on their computers. When turning it off, make sure that your demo includes only commonly used fonts, such as Arial, Times Roman and Verdana.
Exe Select this option if you like to wrap the java demo into a single executable file, which for example can be emailed to others. This option is similar to creating Exe demos, however with two major differences:
- the generated Java executables are often smaller than those created with the Generate Exe option as they take advantage of functionality provided by Java Runtime Environment.
- the generated Java executables may not work on all Windows computers as they require the Java Runtime Environment to be installed and enabled on viewer's computer.
Java executables are compact and great for emailing, and it is often  beneficial to create such demos in a corporate environment if  you confirm that Java Runtime Environment is installed as standard on all computers within your organization.
Sound format Select the format of the sound to be included in demo, or None if you do not want sound. The two available sound formats are Wave (WAV) and MP3. It is usually recommended to output MP3 format as it provides great compression and results in smaller demo files.


Important technical notes:

Related Topics