如下代码:
    JSplitPane jspane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, westPane,
                                       centerPane);
    jspane.setContinuousLayout(true);
    jspane.setOneTouchExpandable(true);   
    jspane.setDividerLocation( (super.getWidth() - 50) / 4 + 10);JSplitPane分隔为两块区域,中间由分隔条隔着,分隔条上有两个箭头,左右可以隐藏/显示左右的westPane和centerPane,但当单击处于分隔条上的中间区域(不是左右箭头所处的位置),为什么分隔条会跳到一个新的位置?jspane.setDividerLocation( (super.getWidth() - 50) / 4 + 10);
不是已经设置了分隔条的绝对位置了吗?谢谢大家