News

The syntax "object-name.setFont (custom-font);" will assign the new font to a Swing component. In this code, "object-name" is the name of the Swing object that is displaying your Unicode text.
Compile the source code without the -encoding unicode option (javac PrintPi.java) and run the application as before (java PrintPi). You’ll observe identical output.
If these stream classes are intended to be chained, I want to implement my little hack in a class, and let the superclass take care of the nasty issues of writing the data.<BR>It's bad enough that ...