📄 jav6a.java
字号:
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);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -