parent Frames in Applets?

I have an application I am converting to an applet.  The dialog boxes will not work unless I pass it a new frame.

Q.  How can I access the parent frame of the browser so that I can stop browser activitiy until the dialog box is answered.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cmg05Author Commented:
Adjusted points to 100
hi u can do it
if u r adding this code to
then add
Dialog d = new Dialog((Frame)this.getParent,"title",true);//this.getParent will return u container typecast it to Frame

or if u are using it in some other metnod other than init()
then do
private Frame f ;
f = (Frame)this.getParent;
pass this f to constructor of Dialog
Dialog d = new Dialog(f,"title",true);


Component c = applet;
while (!(c == null || c instanceof Frame))
  c = c.getParent();
Frame f = (Frame)c;
if (f == null)
  // NEVER happens
  f = new Frame("dummy frame");

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cmg05Author Commented:
i was hoping the dialog would lock out all text feils as well but It does stay on top thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.