HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 1 February 97
Foil 51 Centering a string in the applet window.
From Jan 22 Delivered Lecture for Course CPS616 -- Java Lecture 1 -- Overview CPS616 spring 1997 -- Jan 22 1997. byNancy McCracken * Critical Information in IMAGESecs 18.7
The method applet.size() returns the width and height as a dimension object, which has width and height variables. FontMetrics has variables for various attributes of the font, including width and height.
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.