2
A
回答
2
尝试使用一个PropertyChangeListener:
JEditorPane html = new JEditorPane();
html.addPropertyChangeListener("page", this);
try
{
html.setPage(new URL(webURL.getText()));
}
catch(Exception exc)
{
System.out.println(exc);
}
...
public void propertyChange(PropertyChangeEvent e)
{
System.out.println("Page Loaded");
}
有一段时间的初始页面加载后,事件就会被解雇,但之前加载的所有子图像。然而,我只是做了一个快速测试,并且在页面和图像加载完成后,它现在会启动。
相关问题
- 1. onready/onload for document.innerHTML change
- 2. 剑道图。 onReady事件
- 3. expand collapse JeditorPane
- 4. JEditorPane中的NewLine
- 5. JEditorPane HTML呈现
- 6. Java JEditorPane格式
- 7. 从JEditorPane打印
- 8. HttpClient - Cookie和JEditorPane
- 9. JEditorPane中的换行
- 10. Swing JEditorPane CSS功能
- 11. JEditorPane中,在文本
- 12. 快速写入JEditorPane
- 13. EXTJS - 内部脚本的Ext.require和onReady()
- 14. 不一致JDA OnReady不起作用
- 15. 外部onReady访问extjs元素
- 16. AJAX级联DropDown JavaScript事件onready
- 17. 如何使用jQuery禁用按钮onReady
- 18. YouTube AS3 API(onReady不适用更多?)
- 19. 调整JEditor中的JEditorPane
- 20. JEditorPane显示HTML转储
- 21. Java JEditorPane不显示图像
- 22. JEditorPane是最后一行
- 23. 的JButton在一个JEditorPane
- 24. Java - JEditorPane - 超链接问题
- 25. 将图像粘贴到JEditorpane
- 26. 自动视图定位JEditorPane
- 27. JEditorPane - 使制表符空格
- 28. 在JEditorPane中选择元素
- 29. 在JEditorPane中高亮显示
- 30. 如何追加到JEditorPane?
你是一个挥杆专家 – 2015-11-19 21:00:11