File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Browser window and applet frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Browser window and applet frame" Watch "Browser window and applet frame" New topic

Browser window and applet frame

Vidya Ram
Ranch Hand

Joined: Apr 22, 2003
Posts: 62
Hi all,
I have 2 questions.
1. I'm popping a frame from an applet. I'm doing it basically because I have my own toolbar in my applet and so I don't want browser's toolbar. So I just put everything in a frame and pop it out of the browser will just be blank.
The problem now is if I close this browser window, my frame also gets closed. So I have to give a warning to the users not to close the main browser there any way to make my frame not to close though the browser window is closed? Or is there any better way to achieve this?
2. I am initiating an applet(say child applet) from inside another applet(parent applet). I have designed my child applet also as a separate frame popping out of the browser.
Now I want my child applet's broswer and frame to be closed as soon as I close my parent applet. How do I do this? I'm not using swing , so I can't use the JFrame's feature JFrame.EXIT_ON_CLOSE.
This is my first project in I think I have messed things up here. Please let me know if there are any other standard (and easy :-)) ways to achieve the above.
I agree. Here's the link:
subject: Browser window and applet frame
jQuery in Action, 3rd edition