This applet demonstrates the use of True Type Fonts in Java. Basically you have only the choice between TimesRoman, Courier and Helvetica if you want your applet to run on all machines.
Fonts are objects which have to be created with new .
The size can be set in the last parameter of the Font constructor. Sourcecode import java.awt. In this tutorial Johannes Wallroth gives a series of fairly simple examples in order to enable you to get a grasp of the possibilities and the syntax of the Java language. Take a step by step walk through the process of building a Java applet with programmer Bavo Bruylandt. Throughout the Java tutorial all new lines of code are explained.