📄 swingapplication.jvt
字号:
import
javax.swing.JFrame
field
private JFrame frame;
method
/**
* Launch the application
* @param args
*/
public static void main(String args[]) {
try {
%TypeName% window = new %TypeName%();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
method
/**
* Create the application
*/
public %TypeName% () {
initialize();
}
method
/**
* Initialize the contents of the frame
*/
private void initialize() {
%this%frame = new JFrame();
%this%frame.setBounds(100, 100, %DefaultFormSize%);
%this%frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -