[java] applet windows
Does anyone know how to get the width and height of an applet window? Thanks!
- Daniel
http://sw.mtx.net/daniel/
- DanielMy homepage
Thanks, but how would I separate that into the width and height??
- Daniel
http://sw.mtx.net/daniel/
- 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.
February 20, 2000 06:58 AM
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement