I have a an html code (taken from any site) saved in a string. I want this string to appear in a jeditorpane but i get a white page. my java code is:
jEditorPane1.setText(""); //empty jEditorPane1
jEditorPane1.setContentType("text/html"); //Set jEditorPane1 type to text/html
jEditorPane1.setText(mycode) //mycode is a string that contains the html code taken from site


Note: mycode can be for example source code of www.yahoo.com (you can fetch it from any web browser)