1个回答
展开全部
public class Demo extends JDialog{
public Demo(JFrame owner){
super(owner);
setSize(new Dimension(322, 163));
final JSplitPane splitPane = new JSplitPane();
getContentPane().add(splitPane);
splitPane.setEnabled(false); //禁用JSplitPane,分割条就不移动了
}
public static void main(String[] args){
Demo demo = new Demo(null);
demo.setVisible(true);
}
}
public Demo(JFrame owner){
super(owner);
setSize(new Dimension(322, 163));
final JSplitPane splitPane = new JSplitPane();
getContentPane().add(splitPane);
splitPane.setEnabled(false); //禁用JSplitPane,分割条就不移动了
}
public static void main(String[] args){
Demo demo = new Demo(null);
demo.setVisible(true);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询