Can Java's Desktop library launch a URL in a new Browser Tab or Window?

后端 未结 5 1150
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 14:49

I have a static method used to launch a browser with a given URL. When the browser is already open, this takes over the active browser window.

This is a problem if t

5条回答
  •  悲&欢浪女
    2020-12-06 15:33

    It sounds like the java.awt.Desktop API doesn't give this level of functionality.

    Here is a link we found to the java.net forums where this was asked in 2006.

    A response there referred to JDIC's WebBrowser.

提交回复
热议问题