Print styled text from a JTextPane

webmasterbeta

New Member
Hey everyone,I am trying to print (send to a printer) styled text from a JTextPane, whichuses the DefaultStyledDocumentin its constructor. By styled text, I mean, text at different sizes, fonts,colors, and types. I've been looking atat all of the java.awt.print tutuorials, but all they do is explain how toprint a graphical component, or printa graphic. This seems simple, but all I need to do is print the text insidethe JTextPane, and maintain thetext's styles. Thanks in advance,Christian Calloway
 
Back
Top