# HG changeset patch # User alexp # Date 1278084874 -14400 # Node ID e30f106a4b8b902e7225ce6307495e668011f1d4 # Parent 94a5ce4a297b2f94ed97cf1c16daaddccc72a56d 6937415: Some components return undocumented default values under Nimbus LaF Reviewed-by: peterz diff -r 94a5ce4a297b -r e30f106a4b8b jdk/src/share/classes/javax/swing/JSplitPane.java --- a/jdk/src/share/classes/javax/swing/JSplitPane.java Fri Jul 02 19:28:51 2010 +0400 +++ b/jdk/src/share/classes/javax/swing/JSplitPane.java Fri Jul 02 19:34:34 2010 +0400 @@ -242,19 +242,19 @@ /** * Creates a new JSplitPane configured to arrange the child - * components side-by-side horizontally with no continuous - * layout, using two buttons for the components. + * components side-by-side horizontally, using two buttons for the components. */ public JSplitPane() { - this(JSplitPane.HORIZONTAL_SPLIT, false, - new JButton(UIManager.getString("SplitPane.leftButtonText")), - new JButton(UIManager.getString("SplitPane.rightButtonText"))); + this(JSplitPane.HORIZONTAL_SPLIT, + UIManager.getBoolean("SplitPane.continuousLayout"), + new JButton(UIManager.getString("SplitPane.leftButtonText")), + new JButton(UIManager.getString("SplitPane.rightButtonText"))); } /** * Creates a new JSplitPane configured with the - * specified orientation and no continuous layout. + * specified orientation. * * @param newOrientation JSplitPane.HORIZONTAL_SPLIT or * JSplitPane.VERTICAL_SPLIT @@ -263,7 +263,8 @@ */ @ConstructorProperties({"orientation"}) public JSplitPane(int newOrientation) { - this(newOrientation, false); + this(newOrientation, + UIManager.getBoolean("SplitPane.continuousLayout")); } @@ -287,9 +288,7 @@ /** * Creates a new JSplitPane with the specified - * orientation and - * with the specified components that do not do continuous - * redrawing. + * orientation and the specified components. * * @param newOrientation JSplitPane.HORIZONTAL_SPLIT or * JSplitPane.VERTICAL_SPLIT @@ -307,7 +306,9 @@ public JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent){ - this(newOrientation, false, newLeftComponent, newRightComponent); + this(newOrientation, + UIManager.getBoolean("SplitPane.continuousLayout"), + newLeftComponent, newRightComponent); } diff -r 94a5ce4a297b -r e30f106a4b8b jdk/src/share/classes/javax/swing/JTable.java --- a/jdk/src/share/classes/javax/swing/JTable.java Fri Jul 02 19:28:51 2010 +0400 +++ b/jdk/src/share/classes/javax/swing/JTable.java Fri Jul 02 19:34:34 2010 +0400 @@ -1048,7 +1048,7 @@ /** * Returns the horizontal and vertical space between cells. - * The default spacing is (1, 1), which provides room to draw the grid. + * The default spacing is look and feel dependent. * * @return the horizontal and vertical spacing between cells * @see #setIntercellSpacing @@ -1155,7 +1155,7 @@ /** * Returns true if the table draws horizontal lines between cells, false if it - * doesn't. The default is true. + * doesn't. The default value is look and feel dependent. * * @return true if the table draws horizontal lines between cells, false if it * doesn't @@ -1167,7 +1167,7 @@ /** * Returns true if the table draws vertical lines between cells, false if it - * doesn't. The default is true. + * doesn't. The default value is look and feel dependent. * * @return true if the table draws vertical lines between cells, false if it * doesn't diff -r 94a5ce4a297b -r e30f106a4b8b jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf Fri Jul 02 19:28:51 2010 +0400 +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf Fri Jul 02 19:34:34 2010 +0400 @@ -21276,6 +21276,7 @@ +