[2974] in java-interest
applet width and height vs resize
daemon@ATHENA.MIT.EDU (Laura Lemay, Killer of Trees)
Tue Oct 24 18:08:55 1995
Date: Tue, 24 Oct 1995 11:55:02 -0800
To: java-interest@java.Eng.Sun.COM
From: lemayp@lne.com (Laura Lemay, Killer of Trees)
What's the relationship between specifying the dimensions of an applet
in the <APPLET> tag, like this:
<APPLET WIDTH=100 HEIGHT=100 ...>
vs doing it in the init() method using resize(100,100)??
As best as I can figure out, the values in the APPLET tag determine
the overall dimensions of the applet area in the web page layout, the same
way those same attributes determine the size of an image. Resize,
on the other hand, determines the size of the applet area to Java, which may or
may not be different from the APPLET values.
It also appears that if you specify dimensions in WIDTH/HEIGHT that are
smaller than those of the actual applet area (in resize), then the
applet will be cropped. Of course, I only have appletviewer to go on,
so I don't know how it'll behave in a browser where I can't resize
the window if the applet is getting cropped...
So, what I'm asking is: are WIDTH/HEIGHT just a convenience for laying out
the web page, the same way that those attributes work in <IMG>, or is there
some other relationship between those attributes and resize?
Laura
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com