File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 10815

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
jQuery in Action, 3rd edition