jfilecryptmain.java

来自「很强的JAVA加密、解密算法源码」· Java 代码 · 共 39 行

JAVA
39
字号
package net.sourceforge.jfilecrypt;//Download to http://www.codefans.netimport java.awt.Dimension;import java.awt.Toolkit;import javax.swing.JFrame;import javax.swing.UIManager;public class jFileCryptMain {    /**     * Creates a @see net.sourceforge.jfilecrypt.jFileCryptFrame     */        public jFileCryptMain() {        JFrame frame = new jFileCryptFrame();        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();        Dimension frameSize = frame.getSize();        if (frameSize.height > screenSize.height) {            frameSize.height = screenSize.height;        }        if (frameSize.width > screenSize.width) {            frameSize.width = screenSize.width;        }        frame.setLocation( ( screenSize.width - frameSize.width ) / 2, ( screenSize.height - frameSize.height ) / 2 );        frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );        frame.setVisible(true);    }    public static void main(String[] args) {        try {            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());        } catch (Exception e) {            e.printStackTrace();        }        new jFileCryptMain();    }}

⌨️ 快捷键说明

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