diff options
Diffstat (limited to 'java/awt/Rectangle.java')
-rw-r--r-- | java/awt/Rectangle.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/awt/Rectangle.java b/java/awt/Rectangle.java index ac2494ee0..1d5a8da07 100644 --- a/java/awt/Rectangle.java +++ b/java/awt/Rectangle.java @@ -183,7 +183,7 @@ public class Rectangle extends Rectangle2D implements Shape, Serializable * @param p the upper left corner of the rectangle */ public Rectangle(Point p) - { + { x = p.x; y = p.y; } @@ -196,7 +196,7 @@ public class Rectangle extends Rectangle2D implements Shape, Serializable * @param d the width and height of the rectangle */ public Rectangle(Dimension d) - { + { width = d.width; height = d.height; } @@ -299,7 +299,7 @@ public class Rectangle extends Rectangle2D implements Shape, Serializable /** * Updates this rectangle to have the specified dimensions, rounded to the * integer precision used by this class (the values are rounded "outwards" so - * that the stored rectangle completely encloses the specified double + * that the stored rectangle completely encloses the specified double * precision rectangle). * * @param x the new X coordinate of the upper left hand corner |