cpu.java
来自「这里是我在学校时所写的一些程序」· Java 代码 · 共 36 行
JAVA
36 行
/*
* @(#)Cpu.java 1.0 03/12/25
*
* You can modify the template of this file in the
* directory ..\JCreator\Templates\Template_1\Project_Name.java
*
* You can also create your own project template by making a new
* folder in the directory ..\JCreator\Template\. Use the other
* templates as examples.
*
*/
package myprojects.cpu;
import java.awt.*;
import java.awt.event.*;
class Cpu extends Frame {
public Cpu() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
}
});
}
public static void main(String args[]) {
System.out.println("Starting Cpu...");
Cpu mainFrame = new Cpu();
mainFrame.setSize(400, 400);
mainFrame.setTitle("Cpu");
mainFrame.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?