I want to open new browser window from java desktop application. If browser is already open, then new browser window should open. Every time it should open a separate window.
-
2stackoverflow.com/questions/5226212/…Dylan Meeus– Dylan Meeus2015-12-01 12:05:38 +00:00Commented Dec 1, 2015 at 12:05
-
this will open a new tab in default browser. I want to open new windowAnkit Kumar Singhal– Ankit Kumar Singhal2015-12-01 12:08:16 +00:00Commented Dec 1, 2015 at 12:08
Add a comment
|
2 Answers
If you are using windows, this should do the trick:
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler http://www.google.com");
Hope it helps.
2 Comments
Ankit Kumar Singhal
as my browser is already opened, i want to open a separate window. It is opening a new tab in the already opened window.
hcarrasko
ah ok...but it's a good option if good performance is needed.