Two Laptop Bag*
The moose likes Beginning Java and the fly likes Browser Control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Browser Control" Watch "Browser Control" New topic

Browser Control

Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
Hi, I am wondering if it is possible to open a url from a java application in the most recent browser tab, i.e without spawning a new tab to show the specified page.
I have done a bit of searching on this topic, and the command

is the usual suggestion. This opens a particular URL, but it opens it in a new tab. Is it possible to override the new tab command?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175

Tab/Window are your browser specific settings. I do not think it would be possible using the generic command (windows) you have rightly quoted.

There might be something like flags or arguments e.g. firefox.exe -tab but that would be tie it down to a specific browser/version.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Browser Control
Similar Threads
how to open page in new tab
How to open popup window for "preview html"
Problem in getting the link to open in Internet explorer
How to control browser launch functionality from java.
Javascript function to open the url in the tabbed browser