Let's say we wanted to append a String "text" to a JEditorPane, making sure that any html is parsed:
I've found two ways to do it.
The simple but bad way:
String text = "<p> Example </p>";
I've found two ways to do it.
The simple but bad way:
JEditorPane pane = new JEditorPane("text/html", null);pane.setText(pane.getText() + text);...
Page 1 of 1
My Blog Links
Recent Entries
Search My Blog
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)
Categories
|
|


Leave Comment


|