Link to home
Start Free TrialLog in
Avatar of cmg05
cmg05

asked on

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.
Avatar of cmg05
cmg05

ASKER

Adjusted points to 100
hi u can do it
if u r adding this code to
init()
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
declare
private Frame f ;
f = (Frame)this.getParent;
pass this f to constructor of Dialog
Dialog d = new Dialog(f,"title",true);

BestLuck
RickyJackman
ASKER CERTIFIED SOLUTION
Avatar of heyhey_
heyhey_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmg05

ASKER

i was hoping the dialog would lock out all text feils as well but It does stay on top thanks.