Wednesday, June 5, 2002 12:40 PM
As an applet is a subclass of component, you can call the
method until you get a frame. Then call the dialog using the frame to display it modal.
I'm too lazy now to look up the code, but it should be similiar to this:
Object component = this.getParent();
while(component != null || !(component instanceof Frame))
component = component.getParent(),
if(component != null)
(new Dialog()).show(component, "it's modal babe", true);
hopefully, this works.