changeset 3828:707f3c6e66af

6735285: "Zero" x,y springs passed to SpringLayout.Constraints constructor are not returned from getters Reviewed-by: rupashka
author alexp
date Thu, 24 Mar 2011 17:00:42 +0300
parents b055e2ef5a97
children ee0b74ec50f3
files src/share/classes/javax/swing/SpringLayout.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/SpringLayout.java	Thu Mar 24 15:29:16 2011 +0900
+++ b/src/share/classes/javax/swing/SpringLayout.java	Thu Mar 24 17:00:42 2011 +0300
@@ -727,6 +727,9 @@
         * For any other <code>String</code> value passed as the edge,
         * no action is taken. For a <code>null</code> edge, a
         * <code>NullPointerException</code> is thrown.
+        * <p/>
+        * <b>Note:</b> This method can affect {@code x} and {@code y} values
+        * previously set for this {@code Constraints}.
         *
         * @param edgeName the edge to be set
         * @param s the spring controlling the specified edge