my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes JEditorPane problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane problems" Watch "JEditorPane problems" New topic

JEditorPane problems

Ashish Sarin
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
I am using a simple JEditorPane which displays an HTML file from a local URL. The following problems I am facing:
1. The HTML page displays differently in the Internet Explorer and in the JEditorPane. The font sizes are different and also the fomatting of the text is different.
2. I am using Java Printing API to print contents from the JEditorPane. I need a small font size so because of this the text of the HTML page isn't displayed correct that is, the resolution is quite low. Is there any way to increase the resolution for viewing in the JEditorPane and then take printout of the contents of the JEditorPane at a smaller font size.
Ashish Sarin

Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
I agree. Here's the link:
subject: JEditorPane problems
Similar Threads
JEditorPane - following links within locally created HTML
Print Multi page JEditorPane html contents in Java
Setting a JEditorPane to use JLabel's default font when using HTML
Getting Formatted Content from jEditorPane
To display webpage in JEditorpane