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.
Q. How can I access the parent frame of the browser so that I can stop browser activitiy until the dialog box is answered.
hi u can do it
if u r adding this code to
init()
then add
Dialog d = new Dialog((Frame)this.getPare nt,"title" ,true);//t his.getPar ent 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
if u r adding this code to
init()
then add
Dialog d = new Dialog((Frame)this.getPare
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i was hoping the dialog would lock out all text feils as well but It does stay on top thanks.
ASKER