How do I generate HTML code in JEditorPane?

I completely lost it. Do I need CSS that is explicitly mentioned in the HTML file? If so, how do I get it, and how would I apply CSS to HTML? I read something about what JSoup can get CSS.

0
java html css swing jeditorpane


source to share


2 answers


See How to add a stylesheet for a JEditorPane . In general, http://

both file://

includes and embedded CSS is not a problem.



+2


source to share


Use style = "" attribute on individual HTML tags



+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics