Java matured very quickly in most respects after it was first introduced, but for a long time printing was one of Java’s weakest points. In fact, Java 1.0 didn’t offer any support for printing at all. Java 1.1 included a class called PrintJob in the java.awt package, but the printing capabilities supported by that class were somewhat crude and unreliable. When Java 1.2 (or “Java 2”) was introduced, it included a completely separate mechanism (the Java 2D printing API) for printing designed around PrinterJob and other classes and interfaces defined in the new java.awt.print package. This rendered the PrintJob-based printing ...

Get Pro Java 8 Programming, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.