John
John

Reputation: 2852

JEditor not displaying the HTML page as in IE of Firefox..?

I am using JEditor to display HTML pages. The issue is that JEditor is not displaying the pages as they are displayed in IE or Firefox. Major issue is with Paragraph Tag. JEditor is not giving the paragraph effect, instead its working like a simple Line break
tag.

UPDATED - The paragraph tag used is <p>....</p>

Upvotes: 0

Views: 171

Answers (1)

RoToRa
RoToRa

Reputation: 38431

JEditor is based on javax.swing.text.html.HTMLEditorKit, which according to its documentation it only supports HTML 3.2 and most likely minimal CSS. You can't expect it to work like any current browser.

If you need to display "modern" HTML/CSS in your application, you'll need to embed a browser in it (which isn't trivial): https://stackoverflow.com/search?q=java+swing+embed+browser&submit=search

Upvotes: 1

Related Questions