⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notepadtextarealistener.java

📁 一个用swt开发的JAVA记事本
💻 JAVA
字号:
/* * NotepadTextAreaListener.java * * Created on 2007年1月4日, 下午5:43 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package net.vlinux.notepad.listener;import javax.swing.event.DocumentEvent;import javax.swing.event.DocumentListener;import net.vlinux.notepad.gui.NotepadGUI;import net.vlinux.notepad.gui.NotepadTextArea;/** * * @author vlinux */public class NotepadTextAreaListener extends NotepadTextArea implements DocumentListener {        private NotepadGUI gui;        public NotepadTextAreaListener(NotepadGUI gui) {        this.gui = gui;        this.getDocument().addDocumentListener(this);    }        public void insertUpdate(DocumentEvent e) {        gui.getNotepad().setChanged(true);    }        public void removeUpdate(DocumentEvent e) {        gui.getNotepad().setChanged(true);    }        public void changedUpdate(DocumentEvent e) {        gui.getNotepad().setChanged(true);    }    }

⌨️ 快捷键说明

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