Can Java's Desktop.browse provide an HTML Target in order to reuse a browser window?

故事扮演 提交于 2019-12-23 17:25:07

问题


I'm moving an application from using javax.help's browser to the user's desktop web browser, but I'm wondering how to prevent the user from winding up with many windows/tabs open as they click to different parts of the document. I don't see any way to specify an HTML Target in a java URI or a call to Desktop.browse. Is there any way to do this in Java within (or outside) Desktop.browse?


回答1:


There is currently no support for this.

Instead, you can open a unique HTML document which display links to other documents. Links will be opened within the browser without opening new window/tab.



来源:https://stackoverflow.com/questions/8761198/can-javas-desktop-browse-provide-an-html-target-in-order-to-reuse-a-browser-win

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!