new1.java
来自「我想在這邊多多探討MATLAB的軟體與程式 希望大家多多關照」· Java 代码 · 共 36 行
JAVA
36 行
/*
* @(#)New1.java 1.0 04/05/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.new1;
import java.awt.*;
import java.awt.event.*;
class New1 extends Frame {
public New1() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
}
});
}
public static void main(String args[]) {
System.out.println("Starting New1...");
New1 mainFrame = new New1();
mainFrame.setSize(400, 400);
mainFrame.setTitle("New1");
mainFrame.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?