Kho*_*nde 9 html java swing jeditorpane
我正在用Java创建一个Web浏览器.在这个浏览器中,我使用JEditorPane作为浏览器窗口.我正在使用"setPage(String url)"方法来显示页面.浏览器可以显示页面,但有一些问题,如上所述::
)).我的代码是 -
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);
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9615 次 |
| 最近记录: |