notepadmodel.java
来自「java绘图 java awt 经典绘图的例子,对于初学awt模块的人非常有帮助」· Java 代码 · 共 34 行
JAVA
34 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package notepad;import java.io.File;/** * * @author zhaolin */public class NotePadModel { private File currentFile; private static NotePadModel model; private NotePadModel(){ } public File getCurrentFile() { return currentFile; } public void setCurrentFile(File currentFile) { this.currentFile = currentFile; } public static NotePadModel getInstane(){ if(model == null) model = new NotePadModel(); return model; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?