📄 notepadtextarealistener.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 + -