参考文章:SDK 1.2 Printing API Tutorial [url]http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html[/url]