Basic HTML version of Foils prepared 13 July 98

Foil 36 Applet Dimensions

From Java Academy I:Elementary Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo


In Java, the width and height of the applet are obtained as follows: int width = getSize().width; int height = getSize().height;
These are the same width and height given in the <APPLET> tag: <APPLET ... WIDTH=... HEIGHT=... >
Note: All measurements are in pixels



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Jul 24 1998