0

是否可以设置 JSplitPane 底部的最大高度?我不希望它调整太多。

这个怎么做 ?

谢谢,

4

1 回答 1

0

JSplitPane 有 2 种方法:.setDividerLocation(int pixel) 和 .setDividerLocation(double percents)。代码将很容易:

jSplitPane.setDividerLocation(0.0); // set maximum height of the bottom part 
于 2012-10-16T14:35:40.327 回答