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

📄 ch7_e7_15.java

📁 Hello User This is nothing, but a simple program which if kept in start of windows will shut down
💻 JAVA
字号:
import java.applet.Applet; 
import java.awt.*;
import java.awt.event.*;

public class ch7_e7_15 extends Applet implements ActionListener
{
    Label outputLbl = new Label("                          ");
    TextField inputTfd = new TextField(10);
    Button copyBtn = new Button("复制");
    
    public void init()
    {
        inputTfd.setText(" ");
        outputLbl.setText("              ");
        add(inputTfd);
        add(copyBtn);
        add(outputLbl);
        
        copyBtn.addActionListener(this);
    }
    
    public void actionPerformed(ActionEvent ae)
    {
        if(ae.getSource() == copyBtn)
        {
            outputLbl.setText(inputTfd.getText());
        }
    }
    
}

⌨️ 快捷键说明

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