main.java
来自「操作系统课程设计:页面置换算法!!!很好的操作系统大作业」· Java 代码 · 共 45 行
JAVA
45 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package app;import java.awt.Dimension;import java.awt.Rectangle;import java.awt.Toolkit;import javax.swing.SwingUtilities;import javax.swing.UIManager;/** * * @author Administrator */public class Main { Main() { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); DemoFrame frame = new DemoFrame(); frame.setVisible(true); frame.setBounds(new Rectangle(600,720)); frame.setLocation((screenSize.width-600)/2, (screenSize.height-720)/2); } /** * @param args the command line arguments */ public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { try { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception exception) {} new Main(); } catch (Exception ex) {} } }); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?