Applet buttons on this page start applications
that can be used for testing the ability of Java
virtual machines to print in various fonts. When
started from applets they run under security
manager and require various permissions to run.
First application prints only one line of text
describing the printers resolution in pixels per
inch and a rectangle 1 inch by 1 inch. It requires
only permission to print. Second aplication
prints several lines of text in user chosen font
and requires also permission to display dialogs.
Third application prints user selected file in
chosen font and page setup. It requires also
permission to read a file. Last application is a
rudimentary word processor and requires permission
to read and write files, dislay dialogs and print.
You can also
download
the archive with the applications and
run them from command line typing JView if you
are using Windows or java if you are using
Sun's runtime environment and the name of the
class that follows the word start in applet
buttons.
Aplications then run with all permissions
automatically but a command SET CLASSPATH=....
where ellipsis is replaced with path-filename
of the Java archive with applications must be
issued before the start of Java VM. Before an
application is terminated a dialog is displayed
asking you if the Java VM should be terminated
also. Choose no if the application was started from
applet button, yes if it was started from command
line prompt. If you are using Microsoft's Java VM,
required permisions can be given from view->options
menu of IE, if you are using Sun's machine start
the policytool from command line.
*****