62,614
社区成员
发帖
与我相关
我的任务
分享
private void refreshUI() {
rightPane.removeAll();
rightPane.add(settingPanel, JSplitPane.TOP);
rightPane.add(listPane, JSplitPane.BOTTOM);
rightPane.setDividerLocation(200);
rightPane.setDividerSize(3);
mainPane.removeAll();
navPane = new JScrollPane(this.navTree);
mainPane.add(navPane, JSplitPane.LEFT);
mainPane.add(rightPane, JSplitPane.RIGHT);
mainPane.setDividerSize(3);
mainPane.setDividerLocation((int) (screen.width / 5.5));
this.add(mainPane);
this.setPreferredSize(new Dimension(screen.width, screen.height - 30));
this.setTitle("测试");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
this.setResizable(false);
this.pack();
}