I want to show webpage in Java on Jframe using JeditorPane code I used:
edPane.setContentType("text/html");
String data="<html>\n" + "<head>\n" + "<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=false\"></script>\n" +
"<script type=\"text/javascript\">\n" + " function initialize() \n" + " {\n" + " \n" + "
var map = new google.maps.Map(document.getElementById(\"map_canvas\"), myOptions);\n" + "</script>\n" + "</head>\n" + "<body onload=\"initialize()\">\n" +
" <div id=\"map_canvas\" style=\"width:100%; height:100%\"></div>\n" + "</body>\n" + "</html>"; edPane.setText(data);
Ouutput: It is displaying nothing in UI.. I want to display the webpage... Help please