Jessada Dissopa
Jessada Dissopa

Reputation: 37

Java open web page through user's default browser

I know that i can use

Desktop.getDesktop().browse(new URI());

to open web page through user's default browser, BUT

every time i open web page it'll open in a new tab.

Do you have any idea if i want to make it opens in only the "same tab".

Upvotes: 0

Views: 106

Answers (1)

Grim
Grim

Reputation: 1974

Try

new URI("javascript:window.open('www.google.de','unique')");

Upvotes: 1

Related Questions