PDA

Click to See Complete Forum and Search --> : Applet Size


billrogers
Feb 13th, 2001, 09:52 AM
Hi all,

I am trying to obtain the size of my applet, if I use size(), it complains saying that it is a depecrated api call, does anyone know what I should use?

Thanks

Feb 13th, 2001, 04:35 PM
Use:
getSize
public Dimension getSize()

since:
size
public Dimension size()
Deprecated. As of JDK version 1.1, replaced by getSize().

billrogers
Feb 14th, 2001, 10:13 AM
Is there a good spot to show, what to use for deprecated api's?

For instance size() went to getSize()

Is there a web site that shows that kind of info?

By the way, your recommendation worked beautifully. Thanks!

Feb 14th, 2001, 11:03 AM
http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html#getSize()

http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html#size()

If you are using Sun's Java, then if you also downloaded the documentation, you'd see it at D:\jdk1.3\docs\api\index.html

where "D:\jdk1.3\" is your installation directory.

Download from http://java.sun.com/j2se/1.3/docs.html
or
Browse Online http://java.sun.com/j2se/1.3/docs/index.html

API & Language link at top
http://java.sun.com/j2se/1.3/docs/index.html#api

Java 2 Platform API Specification link
http://java.sun.com/j2se/1.3/docs/api/index.html