Search code examples
javahtmlswingjtextpanejeditorpane

JEditorPane with Javascript and CSS support


I am working on Swing using JEditorPane but it's not supporting the Javascript or some advanced tag like <object> etc. and not supporting the color, font style size etc.

Is there any solution so that editor pane can display the HTML file as it is being displayed in normal HTML browser?


Solution

    • current Java6/7 supporting only (upto) Html 3.2 with reduced support for css,

    • for Html5 and quite full css support to use JavaFx Components,

    • there are custom Java libraries with (full???) support of Html4/5, css and js but I'd be suggest to use JavaFX instead