• Advertisement

Archived

This topic is now archived and is closed to further replies.

[java] applet windows

This topic is 6547 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to get the width and height of an applet window? Thanks! - Daniel http://sw.mtx.net/daniel/

Share this post


Link to post
Share on other sites
Advertisement
Thanks, but how would I separate that into the width and height??

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites

  • Advertisement