[java] applet windows

Started by
4 comments, last by deakin 24 years, 2 months ago
Does anyone know how to get the width and height of an applet window? Thanks! - Daniel http://sw.mtx.net/daniel/
- DanielMy homepage
Advertisement
getBounds()
Thanks, but how would I separate that into the width and height??

- Daniel
http://sw.mtx.net/daniel/
- DanielMy homepage
I don''t have my "Java in a Nutshell" handy, but if I remember right, GetBounds() will return a dimension object which has public variables for width and height or something similar. Look up the definitions for GetBounds() and the Dimension object.
Oh, sorry. I think it returns a Rectangle but it doesn''t really matter. Just do getBounds.width and getBounds().height to get ''em separately.
Thanks!

- Daniel
http://sw.mtx.net/daniel/
- DanielMy homepage

This topic is closed to new replies.

Advertisement