Mam stronę internetową w zmiennej typu String i chcę, aby JEditorPane wyrenderował mi stronę na podstawie tej zmiennej. Jak to zrobić?
0
0
JEditorPane html=new JEditorPane();
String html_s="<html><body><h1>HelloWorld</h1></body></html>";
html.setContentType("text/html");
html.setText(html_s);