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

后端 未结 5 1148
爱一瞬间的悲伤
爱一瞬间的悲伤 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:22

    You will likely need to configure this in the browser, rather than in your launching code. You might be able to find some launch flags to cause the behavior you want, but you will be tying your code to a particular browser in the process.

提交回复
热议问题