提交 329c569d 编写于 作者: P peterz

6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous...

6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not.
Reviewed-by: alexp
上级 d2887df9
...@@ -246,8 +246,7 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -246,8 +246,7 @@ public class JSplitPane extends JComponent implements Accessible
* layout, using two buttons for the components. * layout, using two buttons for the components.
*/ */
public JSplitPane() { public JSplitPane() {
this(JSplitPane.HORIZONTAL_SPLIT, this(JSplitPane.HORIZONTAL_SPLIT, false,
UIManager.getBoolean("SplitPane.continuousLayout"),
new JButton(UIManager.getString("SplitPane.leftButtonText")), new JButton(UIManager.getString("SplitPane.leftButtonText")),
new JButton(UIManager.getString("SplitPane.rightButtonText"))); new JButton(UIManager.getString("SplitPane.rightButtonText")));
} }
...@@ -264,8 +263,7 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -264,8 +263,7 @@ public class JSplitPane extends JComponent implements Accessible
*/ */
@ConstructorProperties({"orientation"}) @ConstructorProperties({"orientation"})
public JSplitPane(int newOrientation) { public JSplitPane(int newOrientation) {
this(newOrientation, this(newOrientation, false);
UIManager.getBoolean("SplitPane.continuousLayout"));
} }
...@@ -309,9 +307,7 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -309,9 +307,7 @@ public class JSplitPane extends JComponent implements Accessible
public JSplitPane(int newOrientation, public JSplitPane(int newOrientation,
Component newLeftComponent, Component newLeftComponent,
Component newRightComponent){ Component newRightComponent){
this(newOrientation, this(newOrientation, false, newLeftComponent, newRightComponent);
UIManager.getBoolean("SplitPane.continuousLayout"),
newLeftComponent, newRightComponent);
} }
......
...@@ -21276,7 +21276,6 @@ ...@@ -21276,7 +21276,6 @@
<uiProperty name="centerOneTouchButtons" type="BOOLEAN" value="true"/> <uiProperty name="centerOneTouchButtons" type="BOOLEAN" value="true"/>
<uiProperty name="oneTouchButtonOffset" type="INT" value="30"/> <uiProperty name="oneTouchButtonOffset" type="INT" value="30"/>
<uiProperty name="oneTouchExpandable" type="BOOLEAN" value="false"/> <uiProperty name="oneTouchExpandable" type="BOOLEAN" value="false"/>
<uiProperty name="continuousLayout" type="BOOLEAN" value="true"/>
</uiproperties> </uiproperties>
</style> </style>
<backgroundStates> <backgroundStates>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册