📄 jdialog.jvt
字号:
import
java.awt.event.WindowAdapter
java.awt.event.WindowEvent
javax.swing.JDialog
method
/**
* Launch the application
* @param args
*/
public static void main(String args[]) {
try {
%TypeName% dialog = new %TypeName%();
dialog.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
method
/**
* Create the dialog
*/
public %TypeName% () {
super();
setBounds(100, 100, %DefaultFormSize%);
%SwingContentPaneLayout%
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -