⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 starterapplication.java

📁 awt图形界面的生成
💻 JAVA
字号:
import java.awt.Event;
import java.awt.Frame;
import java.awt.event.*;
import java.awt.Label;

public class StarterApplication extends Frame {
	public static void main(String args[]) {
		StarterApplication app = 
				new StarterApplication("Starter Application");

		app.setSize(300,100);
		app.show  ();
		System.out.println("StarterApplication::main()");
	}
	public StarterApplication(String frameTitle) {
		super(frameTitle);
		add  (new Label("Starter", Label.CENTER), "Center");

		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent event) {
				dispose();
				System.exit(0);
			}
		});
	}
}

⌨️ 快捷键说明

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