6735285: "Zero" x,y springs passed to SpringLayout.Constraints constructor are not returned from getters
authoralexp
Thu, 24 Mar 2011 17:00:42 +0300
changeset 8954 290d5b25b7b1
parent 8953 36044fa404c6
child 8955 37ab7cd5890a
6735285: "Zero" x,y springs passed to SpringLayout.Constraints constructor are not returned from getters Reviewed-by: rupashka
jdk/src/share/classes/javax/swing/SpringLayout.java
--- a/jdk/src/share/classes/javax/swing/SpringLayout.java	Thu Mar 24 15:29:16 2011 +0900
+++ b/jdk/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