Using Java application to open browser tabs
I am thinking to make a java application that will take as an input different URLS and open them automatically on new browser tabs.I do know how 开发者_如何转开发to make it work up to the point where a tab is opened .Is that process something too complicated ? What should i look to in order to learn how to do it ?Thanks for any help.
Note this is for OSX
You can use Runtime.getRuntime().exec()
to invoke any command from the Java application. In your case it can be the browser.
Here is the javadoc
To handle this in a somewhat OS independent manner, you could try Desktop.browse(URI)
. But the requirement of all URI's in the same tab can't be done this way, AFAIK.
精彩评论