Stick in this in your main applet code:
static Component getAncestorFrame( Component comp )
{
while ( comp != null && !instanceof Frame )
comp = (Component)comp.getParent() );
return (comp);
}
Pete
______________________________ Reply Separator _________________________________
Subject: Re: Dialogs in applets
Author: welzel ([EMAIL PROTECTED]) at lon-mime
Date: 02/12/98 05:23
I saw a message a while back in the list about using modal dialogs in
Applets. I just want to get a Dialog to work in an applet and could use
some advice. The constructor for a Dialog wants a Frame. How do I get a
Frame from a JApplet?
Some documentation I had suggested using the getParent() method on the
applet, but this is no good since it returns a Container.
Doug