【发布时间】:2011-05-08 10:00:18
【问题描述】:
我正在用 Java 创建一个 Web 浏览器。在这个浏览器中我正在使用 浏览器窗口的 JEditorPane。我正在使用“setPage(String url)”方法 显示页面。浏览器可以显示页面但是有 上面提到的一些问题::
- 浏览器不显示 java 脚本。
- 它没有显示小程序。
- 浏览数据没有以正确的方式显示(例如作为浏览器(在图像中显示))。
我的代码是-
JEditorPane editorPane = new JEditorPane();
String url="http://google.co.in";
editorPane.setEditable(false);
try {
editorPane.setPage(url);
} catch (IOException e) {
System.err.println("Attempted to read a bad URL: " + url);
}
}
【问题讨论】:
-
我不太明白你遇到的第三个问题。也许你可以改写它。
-
@lucasrizoli:我相信他的意思是渲染远非完美。
标签: java html swing jeditorpane