| Author |
Doubt in showDocument() method
|
Thillai Sakthi
Ranch Hand
Joined: Jun 17, 2000
Posts: 91
|
|
I am trying to open a new HTML page from inside a java program. As a general procedure I got the appletcontext and called showDocument method. All works fine. But my doubt is whether stop() method will be called after the new html page got opened or not.(When the new html page opens, it actually opens over the original applet window and thus the control goes there automatically) Therefore strictly speaking, as the applet loses its focus, stop method should be called. To check this I tried the following ways. 1. Wrote the following in java prg. public void stop(){ System.out.println("Stops");} 2. When running from the browser, this command is not getting executed, means I am not getting the consol output(even after some deliberate acts of closing the new html page several times etc) 3. Alternatively when trying to run the prg thru' appletviewer, the new html page itself is not getting opened. I don't know whether my hypothesis is correct or not. I also don't know how to check/validate it. Please help. Thanks in advance.......... Kumaresan
|
Regards,<br /> <br />Shakthi
|
 |
Matt Midcap
Sheriff
Joined: Jan 07, 1999
Posts: 440
|
|
Hi Kumaresan, It has been a while but I have had a similar problem a long time ago. Anyway I think your hypothesis is correct. Sorry that this is all I can offer but it was quit a while ago. Good luck, Matt
|
Best Regards,<br />Matt Midcap
|
 |
 |
|
|
subject: Doubt in showDocument() method
|
|
|