Java Desktop Browser popup window?

There is no way to do this in pure Java. If you really need to do this, you will need some way to find out what the user's default browser is. Then launch you will need to launch a browser instance using System.

Exec, supplying the appropriate command line arguments.

There is an old version of a java class called BareBonesBrowser which tries to detect what browser a user uses and lauch it with a system command line. Do you know of any java class on the web that does this? – othman Oct 3 at 18:35.

There are two ways I can think of to approach this problem: Instead of going directly to the target URL, open an intermediate URL like our.com/bouce.html?url=google.com&w=400&... Then bounce. Html uses JavaScript to open url @ w X h. Use a JEditorPane.

The much maligned editor pane is not ideal for real world browsing, but can deal with a variety of sites, and it is improving with each release (most of the time, anyway).

I don't think JEditorpane is powerfull enough for my needs. I tried some embedded browsers like SWT but i'm facing problems with SWT on linux and as you know SWT is not platform independent. I also tried lobo swing browser but it fails to work for me.It becomes very frastrating for me that I opted to use default system browser; but I yet want to open a browser popup window for better user experience of my application.

– othman Oct 3 at 18:38 "I don't think JEditorpane is powerfull enough for my needs. " Stop thinking and test."but I yet want to open a browser popup window" So use technique 1. – Andrew Thompson Oct 3 at 22:29 I tested JEditorPane : it doesn't work for me!

– othman Oct 3 at 22:59 And do I have to play "20 questions" about why you do not use technique 1? I'm not that interested in playing games. – Andrew Thompson Oct 3 at 23:11.

There is this good project browserlaunch2.sourceforge.net/ you invoke a new browser window like below. However it probably doesn't offer option for setting window height and width. BrowserLauncher browser =new BrowserLauncher(); browser.

SetNewWindowPolicy(true); browser. OpenURLinBrowser(url).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions