notepadframelistener.java

来自「一个用swt开发的JAVA记事本」· Java 代码 · 共 34 行

JAVA
34
字号
/* * NotepadFrameListener.java * * Created on 2007年1月4日, 下午6:53 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package net.vlinux.notepad.listener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import net.vlinux.notepad.gui.NotepadFrame;import net.vlinux.notepad.gui.NotepadGUI;/** * * @author vlinux */public class NotepadFrameListener extends NotepadFrame {        public NotepadFrameListener(int x, int y, int width, int height, final NotepadGUI gui) {        super(x,y,width,height);        addWindowListener(new WindowAdapter(){            public void windowClosing(WindowEvent e) {                new NotepadMenuListener(gui).exit();            }        });    }        }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?