Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

[java] applet windows

4: Adsense

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 deakin   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 chris heimpel   Members   

122
Like
Likes
Like

Posted 19 February 2000 - 02:00 PM

getBounds()

#3 deakin   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 Squidi   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 deakin   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.