aspose file tools*
The moose likes Applets and the fly likes closing !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "closing !!" Watch "closing !!" New topic
Author

closing !!

asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
Imagine you have an applet running under a window of IExplorer and that applet open a new window(Frame). How can I close that applet window(applet context) and frame too from that frame?
thankx
asheet
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I think that you would have to close the browser window with JavaScript. I don't know of any function in pure Java to close the browser window because it is not a Java generated window... If you need help on interacting with JavaScript, there is a good tutorial here.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
well MR. Manfred Leonhardt you did'nt help me last time i hope you have a answer to this question.
asheet
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi,
I think Nathan already answered your question. You can't close a browser from an applet. If you want to close a java frame just use:
Frame f;
f.dispose();
Regards,
Manfred.
asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
thankx for ur advice but i have solve this problem.you just go and have a cup of coffee..
asheet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: closing !!