6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not.
authorpeterz
Thu, 18 Mar 2010 12:02:12 +0300
changeset 5135 99420aad4834
parent 5134 aaee94191629
child 5136 00e4567c2aad
6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not. Reviewed-by: alexp
jdk/src/share/classes/javax/swing/JSplitPane.java
jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf
--- a/jdk/src/share/classes/javax/swing/JSplitPane.java	Wed Mar 17 14:19:07 2010 -0700
+++ b/jdk/src/share/classes/javax/swing/JSplitPane.java	Thu Mar 18 12:02:12 2010 +0300
@@ -246,8 +246,7 @@
      * layout, using two buttons for the components.
      */
     public JSplitPane() {
-        this(JSplitPane.HORIZONTAL_SPLIT,
-            UIManager.getBoolean("SplitPane.continuousLayout"),
+        this(JSplitPane.HORIZONTAL_SPLIT, false,
             new JButton(UIManager.getString("SplitPane.leftButtonText")),
             new JButton(UIManager.getString("SplitPane.rightButtonText")));
     }
@@ -264,8 +263,7 @@
      */
     @ConstructorProperties({"orientation"})
     public JSplitPane(int newOrientation) {
-        this(newOrientation,
-            UIManager.getBoolean("SplitPane.continuousLayout"));
+        this(newOrientation, false);
     }
 
 
@@ -309,9 +307,7 @@
     public JSplitPane(int newOrientation,
                       Component newLeftComponent,
                       Component newRightComponent){
-        this(newOrientation,
-            UIManager.getBoolean("SplitPane.continuousLayout"),
-            newLeftComponent, newRightComponent);
+        this(newOrientation, false, newLeftComponent, newRightComponent);
     }
 
 
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf	Wed Mar 17 14:19:07 2010 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf	Thu Mar 18 12:02:12 2010 +0300
@@ -21276,7 +21276,6 @@
                <uiProperty name="centerOneTouchButtons" type="BOOLEAN" value="true"/>
                <uiProperty name="oneTouchButtonOffset" type="INT" value="30"/>
                <uiProperty name="oneTouchExpandable" type="BOOLEAN" value="false"/>
-               <uiProperty name="continuousLayout" type="BOOLEAN" value="true"/>
             </uiproperties>
          </style>
          <backgroundStates>