Jump to content

  • Log In with Google      Sign In   
  • Create Account

[java] applet windows


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1   Members   

122
Like
Likes
Like

Posted 18 February 2000 - 06:24 PM

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

#2   Members   

122
Like
Likes
Like

Posted 19 February 2000 - 02:00 PM

getBounds()

#3   Members   

122
Like
Likes
Like

Posted 19 February 2000 - 02:53 PM

Thanks, but how would I separate that into the width and height??

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

#4   Members   

122
Like
Likes
Like

Posted 19 February 2000 - 03:03 PM

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.

#5 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 20 February 2000 - 12: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.

#6   Members   

122
Like
Likes
Like

Posted 20 February 2000 - 06:32 PM

Thanks!

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.