SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rectangle Constructor

    I'm looking for an example of how to use the rectange class in particular getArea() and how to initialize it in the first place

    A link to a complete scipt would be useful if you happen to find one

    Thanks...

  2. #2
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you'd do best in the Java API documentation (i'm sure you know where this is since you'd a Java course... that was the No. 1 stop for me those days )...

    btw are you talking about the AWT Rectangle or issit something else? (i'm thinking something else cos i don't think java.awt.Rectangle has a getArea() function...

  3. #3
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm talking the AWT one here, and now that you mention it, I don't think getArea() is in there at all
    I *think* getSize is the one..

    There's some breif exlainations, but i want an actual example!!!


Bookmarks

Posting Permissions

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