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

📄 main.java

📁 一个用swt开发的JAVA记事本
💻 JAVA
字号:
/* * Main.java * * Created on 2007年1月4日, 上午11:39 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package net.vlinux.notepad;import static java.lang.System.out;import java.util.Date;/** * * @author vlinux */public class Main {        private String log(String m) {        String msg = "运行Notepad时发生严重错误,错误原因是:"+m;        out.println( new Date() + msg );        return msg;    }        public Main(String filename) {        try {            new Notepad(filename);        } catch (NotepadException ex) {            log(ex.getMessage());        }    }        public Main(){        try {            new Notepad();        } catch (NotepadException ex) {            log(ex.getMessage());        }    }        /**     * @param args the command line arguments     */    public static void main(String[] args) {        if( args.length==1 ){            new Main(args[0]);        }else{            new Main();        }    }    }

⌨️ 快捷键说明

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