From 329c569de870969adf1d4e4f69114c5420ab10cb Mon Sep 17 00:00:00 2001 From: peterz Date: Thu, 18 Mar 2010 12:02:12 +0300 Subject: [PATCH] 6932524: NIMBUS: 3 constructors of JSplitPane creates new jsp with continuous layout - they should not. Reviewed-by: alexp --- src/share/classes/javax/swing/JSplitPane.java | 10 +++------- src/share/classes/javax/swing/plaf/nimbus/skin.laf | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/share/classes/javax/swing/JSplitPane.java b/src/share/classes/javax/swing/JSplitPane.java index f3baff664..9700b260f 100644 --- a/src/share/classes/javax/swing/JSplitPane.java +++ b/src/share/classes/javax/swing/JSplitPane.java @@ -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); } diff --git a/src/share/classes/javax/swing/plaf/nimbus/skin.laf b/src/share/classes/javax/swing/plaf/nimbus/skin.laf index 15532781c..938391593 100644 --- a/src/share/classes/javax/swing/plaf/nimbus/skin.laf +++ b/src/share/classes/javax/swing/plaf/nimbus/skin.laf @@ -21276,7 +21276,6 @@ - -- GitLab