File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Swing / AWT / SWT
How to print the contents of a JTextPane
Joined: Jan 17, 2001
Jan 16, 2002 23:49:00
I am developing a chat application. The messages are displayed in a
. How do i print it?
Joined: Sep 18, 2001
Jan 17, 2002 07:21:00
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
how to print the contents of jtextpane.
Printing a JTextPane
how to print from a JTextPane (or maybe from a DefaultStyledDocument)
jtextpane to printer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014