Skip to main content

howto open a new browser window with desktop browse

4 replies [Last post]
scesbron
Offline
Joined: 2004-07-26

Hi,

The desktop.browse(uri) api is very simple and it does not seem possible to choose to open the uri in an already opened browser or to open a new instance of the browser to do so.

Am I wrong ? Is there any way to specify that I want to open a new browser window ? Is there another way to do to have more control on the browser behavior ?

Thanx

Seb

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
t800t8
Offline
Joined: 2006-03-03
scesbron
Offline
Joined: 2004-07-26

I thought that the desktop api was a port of the jdic fonctionnalities. Am I wrong ? Is the port not finished or is jdic more powerful than mustang. I don't want to depend on another library as the jdk api is almost what I want

Seb

t800t8
Offline
Joined: 2006-03-03

> I thought that the desktop api was a port of the jdic
> fonctionnalities. Am I wrong ? Is the port not
> finished or is jdic more powerful than mustang.

Yes, you're wrong. Desktop can't do WebBrowser's works.

> I don't want to depend on another library as the jdk
> api is almost what I want

It's your opinion. But I will use anything can make my life better and easier.

xlinuks
Offline
Joined: 2006-05-09

It would really be a great idea to be able to do more than just open a file in the default browser. There are a lot of desktop critical functions which I'm sure can easily be implemented in Java, and the only thing I can think why the Java Team isn't doing this is they don't have enough programmers to do this all ( can't see another reason ) - such 'functions' would help in many cases stick to Java and no C or ASM implementation would be needed.
One of the most critical and obvious at the time for me is:
- There's no way to interact with other desktop windows - whether they are Java windows or not. No RAM size detection, no CPU (approximate) speed detection. They could embed it all in the System class. However.. it's just my opinion (and of many other programmers). I'm trying to use Java anywhere I can, but I can't stick to it all the time. pitty. I don't wanna move to C# cause I love Java and all I'm asking is to improve more desktop functions - b4 doing that let ppl comment it in the forum and listen to it carefully. Sometimes they're right. Sometimes.