Index: src/gnu/gcjwebplugin/AppletTag.java =================================================================== RCS file: /sources/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/AppletTag.java,v retrieving revision 1.27 diff -u -r1.27 AppletTag.java --- src/gnu/gcjwebplugin/AppletTag.java 13 Apr 2006 20:45:39 -0000 1.27 +++ src/gnu/gcjwebplugin/AppletTag.java 17 Apr 2006 16:23:54 -0000 @@ -52,7 +52,6 @@ import java.util.StringTokenizer; import java.util.Vector; -import org.w3c.dom.Node; import org.w3c.dom.NodeList; Index: src/gnu/gcjwebplugin/PluginAppletWindow.java =================================================================== RCS file: /sources/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/PluginAppletWindow.java,v retrieving revision 1.26 diff -u -r1.26 PluginAppletWindow.java --- src/gnu/gcjwebplugin/PluginAppletWindow.java 13 Apr 2006 20:45:39 -0000 1.26 +++ src/gnu/gcjwebplugin/PluginAppletWindow.java 17 Apr 2006 16:23:54 -0000 @@ -24,7 +24,6 @@ import java.applet.Applet; import java.applet.AppletContext; -import java.awt.Dimension; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; import java.awt.event.ContainerEvent; @@ -404,13 +403,13 @@ for (int i = 0; i < s; i++) { - applet = AppletViewer.createApplet((AppletTag) l.get(i)); + tag = (AppletTag) l.get(i); + applet = AppletViewer.createApplet(tag); if (contexts.get(tag.getCodeBase()) == null) contexts.put(tag.getCodeBase(), new PluginAppletContext()); int result = AppletWarning.show(); - if (result == JOptionPane.NO_OPTION) return; @@ -420,16 +419,14 @@ ((PluginAppletContext) context).addApplet(applet); applet.setStub(new CommonAppletStub(tag, context, applet)); - + applet.setSize(getSize()); + // Initialize the applet before showing this window so that // the applet doesn't receive events before it has been // initialized. applet.init(); - setVisible(true); - applet.invalidate(); - applet.validate(); - applet.repaint(); applet.start(); + setVisible(true); applet.invalidate(); applet.validate(); applet.repaint();