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