I'm completely lost on this. Would I need the CSS that is explicitly referenced in the HTML file? If so, how would I get it, and how would I apply the CSS to the HTML? I read something about JSoup being able to get the CSS.
Asked
Active
Viewed 2,704 times
0
-
Again forget `JSoup`. `JEditorPane` renders no higher than HTML 3.2. Have a look at [Cobra](http://lobobrowser.org/cobra.jsp) – Reimeus Dec 27 '12 at 21:47
-
1Have a look at JavaFX supports up to HTML5. See this similar amswer: http://stackoverflow.com/questions/13717769/jeditorpane-javascript-and-css-support/13718130#13718130 – David Kroukamp Dec 28 '12 at 05:24
2 Answers
2
See How to add stylesheet for JEditorPane.
In general http://
and file://
includes and embedded CSS are no problem.

Joop Eggen
- 107,315
- 7
- 83
- 138
-
-
-
1See also [this answer](http://stackoverflow.com/questions/6373621/loading-images-from-jars-for-swing-html/6373907#6373907). – Andrew Thompson Dec 28 '12 at 02:12