Jackson DSC

Back to Demo

JDSC Viewer 1.0 Instructions (Demo Version)


The JDSC Viewer is a Java Applet that was designed to allow a user to display images on his website. Because this image viewer is not hard coded with preset images the user can pick any amount of images that he or she desires to display on the website. Only GIF, JPEG, and PNG files are supported. Currently with this version the user is responsible for sizing the image to fit inside the window.

Setting up the Applet

  1. The archive file demojdscviewer.jar which contains the Applet must be placed in the same directory where your images will be located.
  2. You will also need to created an html file which will call the applet. This html file should look as follows

  3.  

     
     
     
     
     
     
     

    <HTML>

    <HEAD>

    <TITLE> JDSC Viewer 1.0</TITLE>

    <HEAD>

    <BODY>

    <H1> JDSC Viewer will appear in Java Enabled Browser.</H1>

    <APPLET CODE="DemoJDSCViewer.JDSCVApplet.class" WIDTH="500" HEIGHT="500">

    <PARAM NAME="ARCHIVE" VALUE="demojdscviewer.jar">

    <PARAM NAME="numimages" VALUE="7">

    <PARAM NAME="defaultcolor" VALUE="LIGHTGRAY">

    <PARAM NAME="linecolor" VALUE="BLACK">

    <PARAM NAME="image1" VALUE="africa50.jpg">

    <PARAM NAME="title1" VALUE="Africa 50">

    <PARAM NAME="image2" VALUE="cubespace15.jpg">

    <PARAM NAME="title2" VALUE="Cubespace">

    <PARAM NAME="image3" VALUE="MONUMENTAL3.JPG">

    <PARAM NAME="title3" VALUE="Monumental">

    <PARAM NAME="image4" VALUE="hawmoon2.jpg">

    <PARAM NAME="title4" VALUE="Hawaiian Moon">

    <PARAM NAME="image5" VALUE="SonyaBlack.jpg">

    <PARAM NAME="title5" VALUE="Sonya Black">

    <PARAM NAME="image6" VALUE="doctor.jpg">

    <PARAM NAME="title6" VALUE="Doctor">

    <PARAM NAME="image7" VALUE="dreamer.jpg">

    <PARAM NAME="title7" VALUE="Fresh/Dreamer">

    </APPLET>

    </BODY>

    </HTML>

    Adding you image file names to the html file

    1. Once you created the html file and called your applet as above you need to replace the image file names with your filenames as above. Note that the parameter for your file name must be

    <PARAM NAME ="image[n]" VALUE= "SonyaBlack.jpg">

    where [n] is replaced by the image number. For example if you had eight images then the paramter for the eighth image would be

    <PARAM NAME="image8" VALUE="Blade.jpg">

    2. You have to include the total number of images you have with the applet parameter numimages as follows:

    <PARAM NAME="numimages" VALUE="7">

    Resizing the Applet

    The width and height of the Applet or the canvas on which the images are displayed are controlled by the applet parameters Width and Height

    which are usually located on the same line as the Applet tag. For the sample the width and height are set to 500.

    Adding Titles for your Images
     

    1. To add a title for your image you must add a parameter for the title and the number must match

    the corresponding image parameter as follows:

    <PARAM NAME="image1" VALUE="SonyaBlack.jpg">

    <PARAM NAME="title1" VALUE="Sonya Black">

    Changing the color
     

    1. The default color of the applet in this sample is Light Gray and White.  To change the color of the image viewer you can modify two parameters defaultcolor and linecolor.
        The values that you can use for these two parameters must appear as follows:  BLACK, BLUE, CYAN, DARKGRAY, GRAY, GREEN, LIGHTGRAY, MAGENTA, ORANGE,
         PINK, RED, WHITE, YELLOW.
        The parameters look as follows:

      <PARAM NAME="defaultcolor" VALUE="GREEN">
      <PARAM NAME="linecolor" VALUE="BLACK">

    Differences with the demo version and the full version

    1.  This Demo version has the text "DEMO" in the title field and the text "Jackson DSC - www.geocities.com/dwjaxsun".
    2.  The Demo version does not allow you to change the colors of the JDSC Viewer.

    Note
    On some versions of XP the JDSC Viewer 1.0 will not run with the Microsoft VM.  If this happens you will need to download the Java 1.4.2 runtime.  You can download this at
    http://java.sun.com/j2se/1.4.2/download.html
     
     

    Back to Demo