File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to print the contents of a JTextPane

 
Sajee Joseph
Ranch Hand
Posts: 200
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic