JEditorPane printing a HTML PAGE

Hi,

Here is my problem. I am displaying a HTML Page in a JEditorPane. So far so good.

when I try to print is printing to my printer. Here is the problem the Text or to say the font doesnot look good in the paper, each letter is not nice and smoth and it looks like some of the pixels in each letter were lost. This happens right when I initialize the JEditorPane with html code. I can also see the pixels in each letter are lost when I initilized it in a JEditorPane.

Any help will be appreciate.

[524 byte] By [CDCDevelopera] at [2007-11-27 11:26:16]
# 1

How are you printing? Are you using the Printing API?

You can try antialiasing the text before printing:

http://www.exampledepot.com/egs/java.awt/AntiAlias.html

TuringPesta at 2007-7-29 16:09:26 > top of Java-index,Java Essentials,Java Programming...
# 2

BodyField is the JEditorPane

Here is the print Method

BodyField.print(Graphics g);

How can i declare the Graphics g.

CDCDevelopera at 2007-7-29 16:09:26 > top of Java-index,Java Essentials,Java Programming...