August 18th, 2009, 05:51 PM
How to make Java write to a NEW browser window
I have a program that writes its output to an html file.
I have the program check to see if there is supported browser and then the code (currently used) opens a browser window for writing like this . . .
. . however, the problem is that if there is a browser window already open, then this will open a new tab in that browser window and then writes the output there.
I would prefer that the program would always open a new browser window.
I have looked at . . .
. . however it does not help. In fact I am having a hard time finding any documentation about how to have Java write to html files.
So, any help or guidance would be very much appreciated.
August 19th, 2009, 06:42 AM
You may want to re-think your design.... Why do you want to do this? It should probably be the user's choice about how their web browser handles new pages.
August 19th, 2009, 07:27 AM
Originally Posted by tdennist
Actually, that is exactly why I am trying to learn how to make this change.
Based on feedback, from the users of this program, some of them prefer that the program open a new, separate browser window when it displays the output.
So, once I figure out how to do this, then I will give the users the option of either choice.
August 22nd, 2009, 09:56 AM
So, is the question not clear?
Or, should I be asking this question in the HTML Forum?
Again, I would really appreciate any help.