Results 1 to 4 of 4

Thread: Applet Size

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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

  2. #2
    Guest

    Thumbs up getSize

    Use:
    getSize
    public Dimension getSize()

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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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!

  4. #4
    Guest

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

    http://java.sun.com/j2se/1.3/docs/ap...t.html#getSize()

    http://java.sun.com/j2se/1.3/docs/ap...nent.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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width