0

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.

Andrew Thompson
  • 166,747
  • 40
  • 210
  • 420
user1610406
  • 692
  • 1
  • 13
  • 23
  • 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
  • 1
    Have 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 Answers2

2

See How to add stylesheet for JEditorPane. In general http:// and file:// includes and embedded CSS are no problem.

Joop Eggen
  • 102,262
  • 7
  • 78
  • 129
1

Use a style="" attribute in the individual HTML tags

Lee Meador
  • 12,521
  • 1
  • 31
  • 39