6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not
Reviewed-by: alexp
This commit is contained in:
parent
1f82f6a3f0
commit
9d11138463
@ -246,8 +246,7 @@ public class JSplitPane extends JComponent implements Accessible
|
||||
* 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 @@ public class JSplitPane extends JComponent implements Accessible
|
||||
*/
|
||||
@ConstructorProperties({"orientation"})
|
||||
public JSplitPane(int newOrientation) {
|
||||
this(newOrientation,
|
||||
UIManager.getBoolean("SplitPane.continuousLayout"));
|
||||
this(newOrientation, false);
|
||||
}
|
||||
|
||||
|
||||
@ -309,9 +307,7 @@ public class JSplitPane extends JComponent implements Accessible
|
||||
public JSplitPane(int newOrientation,
|
||||
Component newLeftComponent,
|
||||
Component newRightComponent){
|
||||
this(newOrientation,
|
||||
UIManager.getBoolean("SplitPane.continuousLayout"),
|
||||
newLeftComponent, newRightComponent);
|
||||
this(newOrientation, false, newLeftComponent, newRightComponent);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user