M. Gallant 01/20/2000
The HelloWinColor applet on this page
instantiates a Win32ColorDlg object
which makes a Win32 API call to
the Common Dialog ChooseColor() function of the Comdlg32.dll library.
It demonstrates J/Direct implementation of structs via J/direct and
callback procedure. The script used to archive and sign the code
(with 3 classes in the archive) is:
jvc.exe /x- /nomessage HelloWinColor.java
cabarc -p n hellowincolor.cab *.class
signcode -j javasign.dll -jp LOW -cn "Security Development" -n "Win32 J/Direct Color Dialog" -t "http://timestamp.verisign.com/scripts/timstamp.dll" hellowincolor.cab
The applet is signed wilth full privileges to make such native calls.
The button activates the Color Dialog.