CHAPTER 11

image

Printing

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.