Usage in Applet

The Drag and Drop beans may be used to create the signed applets only.

The mandatory requirements to create an applet by using the Drag and Drop components in Visual Age for Java 2.0 are:

  1. Locate the image files for the drag and drop cursor icons to the [root folder of Visual Age]/ide/project_resources/[project name]/com/ibm/dnd/images directory.
  2. Specify the image file name without its path in the dragIconImage and dropIconImage properties of the DragBean bean, when the applet creates in Visual Age for Java 2.0.
 To create a signed applet, make the following actions:
  1. Unpack the dnd.jar file.
  2. Locate the image files for the drag and drop cursor icons to the com/ibm/dnd/images directory.
  3. Form the signed jar file. In order to applet can work in Netscape Communicator, for example, do the following:
    1. Install Netscape Signing Tool v. 1.1 (this product is available on http://developer.netscape.com:80/software/signedobj/jarpack.html).
    2. Start the Netscape Communicator and open its Security Info window by pressing the Ctrl+Shift+I key combination or the Security button on the tool bar panel. Select the Password menu item and determine the password. Close Netscape Communicator.
    3. * Create a certificate by typing "signtool -d "C:\Program Files\Netscape\Users\[username]" -G"[certificate name]" at the command prompt.
    4. Create a directory (for example, the signdir directory ) and locate the contents of  the previously unpacked dnd.jar file and your applet to this directory.
    5. * Create the jar file by typing "signtool -d "C:\Program Files\Netscape\Users\[username]" -k"[certificate name]" -Z"[jar file name]" signdir " at the command prompt.
    6. Create the html file with an integrated applet.
    7. Locate the html and jar files to the web directory.
    Note:  After completion of the each "*" marked step enter the password, determined in step 2.