A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
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
Printing a JTextPane
how to print the contents of 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-2015