notepadframe.java

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

JAVA
37
字号
/* * NotepadFrame.java * * Created on 2007年1月4日, 上午11:41 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package net.vlinux.notepad.gui;import java.awt.Toolkit;import javax.swing.JFrame;import net.vlinux.notepad.listener.NotepadFrameListener;/** * * @author vlinux */public class NotepadFrame extends JFrame {            public NotepadFrame(int x, int y, int width, int height) {                /**         * 设置窗体         */        this.setBounds(x,y,width,height);        this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);        this.setIconImage( Toolkit.getDefaultToolkit().getImage("notepad_icon.jpeg") );    }        public static JFrame instance(int x, int y, int width, int height, NotepadGUI gui) {        return new NotepadFrameListener(x,y,width,height,gui);    }    }

⌨️ 快捷键说明

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