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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top