Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Browser window and applet frame

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 browser...so 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 window...is 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 Java...so 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.
Thanks,
Vidya.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic