JFrame/JDialog Browser problem
Posted on 2000-02-17
We're developming a Java applet which uses swing components. Here's the basic gist of how it works. When the applets starts, it generates a JFrame which basically displays online database information. The JFrame should work in theory like this: when the default close operation is called (x box in the upper right corner of the frame is clicked) a JDialog box appears and asks for confirmation. If "yes" is clicked, both frames should close.
In reality - when the default close operation is called the JDialog box appears, however when "yes" is clicked the Dialog box disappears and then reappears a few seconds later as well as the main frame. We can't get either to disappear. This only occurs when the applet is run under a browser. It does not happen when run under Visual Age for Java. Anybody have any ideas what the problem is and how it could be fixed?