aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to print the contents of a JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to print the contents of a JTextPane" Watch "How to print the contents of a JTextPane" New topic
Author

How to print the contents of a JTextPane

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi,
I am developing a chat application. The messages are displayed in a JTextPane. How do i print it?

Regards
Saj
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
You can use the print mechanisms in java.awt or Java 2D. If you check out a Java 2D book, you should get the info you want.
A good book that I used was Core JFC, by Kim Topley> Though it's not a 2D book, it does contain some good printing examples.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print the contents of a JTextPane