File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Doubt in showDocument() method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Doubt in showDocument() method " Watch "Doubt in showDocument() method " New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in showDocument() method
 
Similar Threads
doubt in Session parameters
Calling Javascript method in js file from Applet
Doubt
Garbage collection doubt
URLConnection & writing HTML back to browser