This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Print Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Print Document" Watch "Print Document" New topic
Author

Print Document

Le Wang
Greenhorn

Joined: Oct 09, 2001
Posts: 10
Hi, I want to print the document in the TextArea, who knows how to set printer and print the document?

Thanks!

Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
use the class PrinterJob. (see the tutorial at sun's for information.)
chantal
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Print Document