import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;public class Test extends JFrame{ private static JSplitPane hSplitPane = new JSplitPane(); public static void main(String args[]) {
new Test();
} public Test() {
super();
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); hSplitPane.setDividerLocation(0.65);
hSplitPane.setResizeWeight(0.65);   


hSplitPane.setLeftComponent(buildUI());
hSplitPane.setDoubleBuffered(true);
hSplitPane.setContinuousLayout(true);

this.getContentPane().add(hSplitPane, BorderLayout.CENTER);
this.setSize(700, 400);
this.setVisible(true);
}



public JPanel buildUI() {
FlowLayout fo = new FlowLayout(FlowLayout.LEFT, 10, 10);
JPanel p = new JPanel();

p.setName("左键");
p.setLayout(fo);
JButton[] buttons = new JButton[8];
for (int i = 0; i < buttons.length; i++) {
buttons[i] = new JButton("test");
p.add(buttons[i]);
}
return p;
}
}JSplitPane请左调整大小时,被左边面板里的按钮撑着,所以不能再向左调整大小,有没有办法让JSplitPane继续向左调整大小,当然面板里的按钮要换行排列才行!