提交 76acf2c0 编写于 作者: A alexp

6937415: Some components return undocumented default values under Nimbus LaF

Reviewed-by: peterz
上级 ec26644a
...@@ -242,11 +242,11 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -242,11 +242,11 @@ public class JSplitPane extends JComponent implements Accessible
/** /**
* Creates a new <code>JSplitPane</code> configured to arrange the child * Creates a new <code>JSplitPane</code> configured to arrange the child
* components side-by-side horizontally with no continuous * components side-by-side horizontally, using two buttons for the components.
* layout, using two buttons for the components.
*/ */
public JSplitPane() { public JSplitPane() {
this(JSplitPane.HORIZONTAL_SPLIT, false, this(JSplitPane.HORIZONTAL_SPLIT,
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")));
} }
...@@ -254,7 +254,7 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -254,7 +254,7 @@ public class JSplitPane extends JComponent implements Accessible
/** /**
* Creates a new <code>JSplitPane</code> configured with the * Creates a new <code>JSplitPane</code> configured with the
* specified orientation and no continuous layout. * specified orientation.
* *
* @param newOrientation <code>JSplitPane.HORIZONTAL_SPLIT</code> or * @param newOrientation <code>JSplitPane.HORIZONTAL_SPLIT</code> or
* <code>JSplitPane.VERTICAL_SPLIT</code> * <code>JSplitPane.VERTICAL_SPLIT</code>
...@@ -263,7 +263,8 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -263,7 +263,8 @@ public class JSplitPane extends JComponent implements Accessible
*/ */
@ConstructorProperties({"orientation"}) @ConstructorProperties({"orientation"})
public JSplitPane(int newOrientation) { public JSplitPane(int newOrientation) {
this(newOrientation, false); this(newOrientation,
UIManager.getBoolean("SplitPane.continuousLayout"));
} }
...@@ -287,9 +288,7 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -287,9 +288,7 @@ public class JSplitPane extends JComponent implements Accessible
/** /**
* Creates a new <code>JSplitPane</code> with the specified * Creates a new <code>JSplitPane</code> with the specified
* orientation and * orientation and the specified components.
* with the specified components that do not do continuous
* redrawing.
* *
* @param newOrientation <code>JSplitPane.HORIZONTAL_SPLIT</code> or * @param newOrientation <code>JSplitPane.HORIZONTAL_SPLIT</code> or
* <code>JSplitPane.VERTICAL_SPLIT</code> * <code>JSplitPane.VERTICAL_SPLIT</code>
...@@ -307,7 +306,9 @@ public class JSplitPane extends JComponent implements Accessible ...@@ -307,7 +306,9 @@ 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, false, newLeftComponent, newRightComponent); this(newOrientation,
UIManager.getBoolean("SplitPane.continuousLayout"),
newLeftComponent, newRightComponent);
} }
......
...@@ -1048,7 +1048,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable ...@@ -1048,7 +1048,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
/** /**
* Returns the horizontal and vertical space between cells. * 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 * @return the horizontal and vertical spacing between cells
* @see #setIntercellSpacing * @see #setIntercellSpacing
...@@ -1155,7 +1155,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable ...@@ -1155,7 +1155,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
/** /**
* Returns true if the table draws horizontal lines between cells, false if it * 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 * @return true if the table draws horizontal lines between cells, false if it
* doesn't * doesn't
...@@ -1167,7 +1167,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable ...@@ -1167,7 +1167,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
/** /**
* Returns true if the table draws vertical lines between cells, false if it * 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 * @return true if the table draws vertical lines between cells, false if it
* doesn't * doesn't
......
...@@ -21276,6 +21276,7 @@ ...@@ -21276,6 +21276,7 @@
<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.
先完成此消息的编辑!
想要评论请 注册