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:
<APPLET
CODEBASE = "./"
ARCHIVE = "maxicode.jar"
CODE = "com.businessrefinery.barcode.maxicode.demo.DemoApplet.class"
NAME = "TestApplet"
WIDTH = 200
HEIGHT = 200
HSPACE = 0
VSPACE = 0
ALIGN = middle
><PARAM NAME = "DATA" VALUE = "MaxiCode test.">
<PARAM NAME = "X" VALUE = ".1">
</APPLET>
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:
TestApplet.setParameter(BARCODE,"new value");
TestApplet.refresh();
An example of using the applet is provided in the ZIP file download. The file is named "AppletTest.html".