File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to print the contents of a JTextPane
 
Similar Threads
how to print the contents of jtextpane.
Printing a JTextPane
JTextPane
how to print from a JTextPane (or maybe from a DefaultStyledDocument)
jtextpane to printer