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
  • 168,117
  • 40
  • 217
  • 433
user1610406
  • 722
  • 1
  • 13
  • 24
  • 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
  • 107,315
  • 7
  • 83
  • 138
1

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

Lee Meador
  • 12,829
  • 2
  • 36
  • 42