[3000] in java-interest
Re: applet width and height vs resize
daemon@ATHENA.MIT.EDU (Laura Lemay, Killer of Trees)
Thu Oct 26 01:59:37 1995
Date: Wed, 25 Oct 1995 14:36:28 -0800
To: java-interest@java.Eng.Sun.COM
From: lemayp@lne.com (Laura Lemay, Killer of Trees)
>Specifying this information in the HTML file allows the browser to use this
>information in laying out your document before the java applet is loaded.
>When the resize () method is invoked, the document is reformatted to
>account for the change in the applet size, if the new applet size is
>different.
That's precisely what I thought it would be doing, and thats the way
I think it *should* behave, based on similar attributes in <IMG>. However....
- the JDK release notes insist that WIDTH and HEIGHT are *required* --
implying that resize is less important than one would expect. Note that
WIDTH and HEIGHT are not required in <IMG> -- they are optional, as you
note above, so the browser can more easily lay out the document. The
browser can still figure out the size of the image, and I would assume,
the applet, once its been loaded.
- In appletviewer, the size of the window is based on WIDTH and
HEIGHT. If resize is larger, the applet is cropped. The window is NOT
resized, as I would have expected it to be (you can resize it by hand).
Of course, appletviewer is not a browser, and I unfortunately don't have a
copy of Netscape 2.0 that runs on any of my systems. Could someone try
this and report back?
- in the JDK demo applets, all of them have both WIDTH/HEIGHT in
thier HTML files, but all of them also have a resize. Sometimes to
values in resize are different from those in WIDTH/HEIGHT. Sample
code is not helping. :)
In other words, things appear to either be more complicated than they
appear, or just confused because of the crossover between alpha and
beta. I'd like a reply from someone on the Java team about what
its all *supposed* to mean and what the correct programming practice is.
Laura
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com