changeset 2341:325823a26aac

6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not. Reviewed-by: alexp
author peterz
date Thu, 18 Mar 2010 12:02:12 +0300
parents ac4c8e3bf93f
children ef892cd084ec
files src/share/classes/javax/swing/JSplitPane.java src/share/classes/javax/swing/plaf/nimbus/skin.laf
diffstat 2 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/JSplitPane.java	Wed Mar 17 14:19:07 2010 -0700
+++ b/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/src/share/classes/javax/swing/plaf/nimbus/skin.laf	Wed Mar 17 14:19:07 2010 -0700
+++ b/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>