JTextPane to Printer?

J

Jim Crowell

Hi,

I have developed a Class that is designed to produce a Message Dialog with
"Styled" Text. An encoded String is decoded and the appropriate steps are
taken to successfully display the "Styled" text using the JTextPane Java
1.3.1 Class. The End User can designate areas to change the font properties
or can insert images into the displayed text.

Everything is working as required.

Now I would like to capture the displayed text, as it is seen by the
Application End User, and Print it.

Question:

It looks like I may have to code a whole new set of decoding methods using
the 'Graphics' Class methods, e.g. graphics.setFont().

Is that true or can someone point me to a better way to Print my "Styled"
JTextPane object?

Thanks,
Jim...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top