[2989] in java-interest
Re: applet width and height vs resize
daemon@ATHENA.MIT.EDU (John Brayton)
Wed Oct 25 16:29:24 1995
Date: Wed, 25 Oct 1995 09:10:19 -0400
To: java-interest@java.Eng.Sun.COM
From: jbrayton@wwwmail.umassd.edu (John Brayton)
>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)??
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.
If you are writing an applet for someone else's HTML document, it is might
be a good idea to both tell the HTML author to use the WIDTH and HEIGHT
attributes -and- call resize () yourself in your init () method, just in
case the HTML author leaves it out.
John
-----------
John Brayton, Web Developer
UMass Dartmouth (http://www.umassd.edu/)
jbrayton@wwwmail.umassd.edu
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com