| CustomDisplay

Building the CustomDisplay Component

The CustomDisplay JSB makes use of the image file, Circle.gif; demonstrating how a JSB can make use of supporting image files packaged within a JAR:

- CustomDisplay.jsb
- CircleVisual.java
- images/Circle.gif

The JAR file is constructed using a batch file, which references a manifest file which notes which file(s) in the JAR are JavaBeans.

- BuildCustom.bat
  (or on Unix, type `sh BuildCustomDisplay.sh`)
- CustomDisplay.mf

Create `CustomDisplay.jar` by running `BuildCustomDisplay.bat` (or `BuildCustomDisplay.sh` on Unix) from the `(install dir)/samples/CustomDisplay/` directory.

Simply install the resulting JAR file into Visual JavaScript, and drag the component to the page; Visual JavaScript will use the CircleVisual component to draw a custom appearance for the component as it appears on the page within Visual JavaScript.

When the page is previewed, the JSB adds HTML to the page which makes reference to Circle.gif (which is a snapshot of the image drawn by CircleVisual, in this simple example).

( return to the top of the page )