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:
-
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.
-
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:
-
Unpack the dnd.jar file.
-
Locate the image files for the drag and
drop cursor icons to the com/ibm/dnd/images directory.
-
Form the signed jar file. In order
to applet can work in Netscape Communicator, for example, do the following:
-
Install Netscape
Signing Tool v. 1.1 (this
product is available on http://developer.netscape.com:80/software/signedobj/jarpack.html).
-
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.
-
* Create a certificate
by typing "signtool -d "C:\Program
Files\Netscape\Users\[username]" -G"[certificate name]"
at the command prompt.
-
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.
-
* 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.
-
Create the html
file with an integrated applet.
-
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.