I have a similar problem, but while I'm not trying to show a local (c
url, none of the String parameters of ShowDocument(url,string) enable me to generate a new (2nd) browser window.
I'm running an applet, and have no problem displaying the url, but no matter what variation of
showDocument(url,"_blank/_new/_top/Whatever")
I use, I get the new url displayed in the top frame of my applet, removing the original information. This is NOT what I want.
Here is my button listener:
+++++++++++++++++++++++++++++++++++++++++
void buttonGetUrl_Clicked(Event event)
{
try
{
getUrlName=new URL(textFieldUrl.getText());
getAppletContext().showDocument
(getUrlName, "_new");
}
catch(Exception e)
{
label2.setText("Unable to open Url : "
+textFieldUrl.getText());
label2.setBounds(new Rectangle(9,67,313,15));
label2.setVisible(true);
}
}
++++++++++++++++++++++++++++++++++++
I'd appreciate any ideas. I'm using java 1.3.1 (not fixed in stone, but what's installed on my machine) and attempting to do this without swing, but might change if necessary...
Thanks!