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

📄 appletapp.java

📁 矩阵乘法的计算程序
💻 JAVA
字号:
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class AppletApp extends Applet
{
	public static void main (String[] args)
	{
		Frame frame =new Frame("Application");
		AppletApp app=new AppletApp();
		frame.setLayout(new BorderLayout());
		frame.add("Center",app);
		frame.setSize(200,200);
		frame.validate();
		frame.setVisible(true);
		frame.addWindowListener(new WindowControl(app));
		app.init();
		app.start();
		// TODO: Add initialization code here
	}
	public void paint(Graphics g)
	{ 
		g.drawString("Hello World From AppletApp",25,25);
	}
		public void destroy(){
			  System.exit(0);
		}

}

class WindowControl extends WindowAdapter{
	Applet c;
    WindowControl(Applet c){
	  this.c=c;
	}
	public void windowClosing(WindowEvent e){
		c.destroy();
	}
}

⌨️ 快捷键说明

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