简体   繁体   中英

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>

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM