I have a HTML code and I want to view in jeditorpane as web page but I could not it.
html code : http://pastebin.com/S0TEGrH5
my attempt:
jEditorPane2.setContentType("text/html");
jEditorPane2.setText(htmlcode);
After this process I have only sound like that dıtt and screen is empty.If I save this code as file (file.html) and jeditorpane2.setpage("file.html") Process have succeed .But I don't want to create file Please give an advise to view html code as web page only use code , no creating file )