提交 5ff5fac0 编写于 作者: A alexp

6979537: closed/javax/swing/JSplitPane/UnitTest/UnitTest.java fails

Reviewed-by: rupashka
上级 44ddbd9c
...@@ -342,12 +342,10 @@ public class BasicSplitPaneUI extends SplitPaneUI ...@@ -342,12 +342,10 @@ public class BasicSplitPaneUI extends SplitPaneUI
setOrientation(splitPane.getOrientation()); setOrientation(splitPane.getOrientation());
// This plus 2 here is to provide backwards consistancy. Previously, // note: don't rename this temp variable to dividerSize
// the old size did not include the 2 pixel border around the divider, // since it will conflict with "this.dividerSize" field
// it now does. Integer temp = (Integer)UIManager.get("SplitPane.dividerSize");
Integer dividerSize = (Integer)UIManager.get("SplitPane.dividerSize"); LookAndFeel.installProperty(splitPane, "dividerSize", temp == null? 10: temp);
if (divider == null) dividerSize = 10;
LookAndFeel.installProperty(splitPane, "dividerSize", dividerSize);
divider.setDividerSize(splitPane.getDividerSize()); divider.setDividerSize(splitPane.getDividerSize());
dividerSize = divider.getDividerSize(); dividerSize = divider.getDividerSize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册