📄 notepadframe.java
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -