Barcode Applet Implementation

Properties

An applet can easily display barcodes in HTML pages. However, applets do not always work on all web browsers.

Example of how to use the applet in HTML:

The size must be specified when using the applet. Parameters can be provided in the Applet PARAM tag or from Javascript. For example, the following code will set a new value for the barcode:

An example of using the applet is provided in the ZIP file download. The file is named "AppletTest.html".

Applet Pre-Loading

The time it takes to create barcodes on web pages using applets can be reduced by pre-loading the applet on a previous page. This type of implementation places the JAR file in the browser's cache and allows quick barcode generation - even over slow dial-up lines. The following JavaScript code pre-loads the Linear Barcode Package.

<APPLET
CODE = "com.businessrefinery.barcode.linear.LinearApplet"
ARCHIVE = "linear.jar"
NAME = "PreloadApplet"
WIDTH = 1 HEIGHT = 1 HSPACE = 0 VSPACE = 0 ALIGN = top >
</APPLET>