📄 glomowindowhandler.java
字号:
import java.awt.event.*;import javax.swing.*;public class GlomoWindowHandler extends WindowAdapter { public final static int CLOSE = 1; public final static int EXIT = 2; private int type; public GlomoWindowHandler(int t) { type = t; } public void windowClosing(WindowEvent e) { if (type == GlomoWindowHandler.CLOSE) { e.getWindow().setVisible(false); e.getWindow().dispose(); } else if (type == GlomoWindowHandler.EXIT) { System.exit(0); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -