summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-03-03 23:22:21 +0000
committerTom Tromey <tromey@redhat.com>2006-03-03 23:22:21 +0000
commit140f76ec61f31eea66bad0ccca135e6ac2ebc11a (patch)
tree91799412e439b7802b31baabe9a822281e563df6
parent8da559ed4c7f73380c52b15b35f00d575632f56a (diff)
downloadclasspath-140f76ec61f31eea66bad0ccca135e6ac2ebc11a.tar.gz
* java/awt/Insets.java (set): New method.
(equals): Added @since.
-rw-r--r--ChangeLog5
-rw-r--r--java/awt/Insets.java20
2 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7621f1777..01ea17aeb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-03 Tom Tromey <tromey@redhat.com>
+
+ * java/awt/Insets.java (set): New method.
+ (equals): Added @since.
+
2006-03-03 David Daney <ddaney@avtrex.com>
* gnu/java/net/protocol/http/HTTPURLConnection.java
diff --git a/java/awt/Insets.java b/java/awt/Insets.java
index 7238a34e2..6d5bd122e 100644
--- a/java/awt/Insets.java
+++ b/java/awt/Insets.java
@@ -100,11 +100,31 @@ public class Insets implements Cloneable, Serializable
}
/**
+ * Set the contents of this Insets object to the specified values.
+ *
+ * @param top the top inset
+ * @param left the left inset
+ * @param bottom the bottom inset
+ * @param right the right inset
+ *
+ * @since 1.5
+ */
+ public void set(int top, int left, int bottom, int right)
+ {
+ this.top = top;
+ this.left = left;
+ this.bottom = bottom;
+ this.right = right;
+ }
+
+ /**
* Tests whether this object is equal to the specified object. The other
* object must be an instance of Insets with identical field values.
*
* @param obj the object to test against
* @return true if the specified object is equal to this one
+ *
+ * @since 1.1
*/
public boolean equals(Object obj)
{