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

📄 appletinout.java

📁 java applet编程,实现对相关图片声音的调用
💻 JAVA
字号:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class AppletInOut extends Applet implements ActionListener
{
	Label prompt;
	TextField input,output;

	public void init()
	{
		prompt = new Label("请输入您的名字:");
		input = new TextField(6);
		output = new TextField(20);
		add(prompt);
		add(input);
		add(output);
		input.addActionListener(this);
	}

	public void actionPerformed(ActionEvent e)
	{
		output.setText(input.getText()+",欢迎您!");
	}
}

⌨️ 快捷键说明

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