tags:

views:

380

answers:

2

Is it possible to somehow ZOOM text and pictures in JEditorPane.

I dont like to go through all the HTML pages to make font size bigger.

+1  A: 

JEditorPane doesn't support this, but you can do a little extending to add the functionality you need...

Try this:

http://www.developer.com/java/other/article.php/3315511

stephendl
thanks, unfortunately it does not seem to work with my HTMLEditorKit, text size is not any larger.
Tom
you'll need to customise it for an HTMLEditorKit, this tutorial does the same thing but for StyledEditorKit.
stephendl
I was not able to do it, class StyledViewFactory implements ViewFactory did not support HTML, it defaults to LabelView causing many issues.
Tom
A: 

Check out TransformUI, which is a cool "extension" of JXLayer. Start the demo, and have your jaw drop! ;-) (hit the 'Auto pack' check box)

Basically, what it does, is to set a scaling AffineTransform before invoking paint on the component, thus having everything the component does scaled up. Thus, your zoom is right there..!

stolsvik