/[classpath]/classpath/java/applet/Applet.java
ViewVC logotype

Diff of /classpath/java/applet/Applet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9.2.1 by gnu_andrew, Fri Jan 14 10:24:05 2005 UTC revision 1.9.2.2 by gnu_andrew, Sun Jan 16 15:15:11 2005 UTC
# Line 78  public class Applet extends Panel Line 78  public class Applet extends Panel
78    /** The applet stub for this applet. */    /** The applet stub for this applet. */
79    private transient AppletStub stub;    private transient AppletStub stub;
80    
81      /** Some applets call setSize in their constructors.  In that case,
82          these fields are used to store width and height values until a
83          stub is set. */
84      private transient int width;
85      private transient int height;
86    
87    /**    /**
88     * The accessibility context for this applet.     * The accessibility context for this applet.
89     *     *
# Line 107  public class Applet extends Panel Line 113  public class Applet extends Panel
113    public final void setStub(AppletStub stub)    public final void setStub(AppletStub stub)
114    {    {
115      this.stub = stub;      this.stub = stub;
116    
117        if (width != 0 && height != 0)
118          stub.appletResize (width, height);
119    }    }
120    
121    /**    /**
# Line 174  public class Applet extends Panel Line 183  public class Applet extends Panel
183     */     */
184    public void resize(int width, int height)    public void resize(int width, int height)
185    {    {
186      stub.appletResize(width, height);      if (stub == null)
187          {
188            this.width = width;
189            this.height = height;
190          }
191        else
192          stub.appletResize(width, height);
193    }    }
194    
195    /**    /**

Legend:
Removed from v.1.9.2.1  
changed lines
  Added in v.1.9.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26