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

📄 copybutton.java

📁 正在学习Java的人或许能从中得到自己想要的东西
💻 JAVA
字号:
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.border.*;
import javax.accessibility.*;

import java.awt.*;
import java.awt.event.*;
import java.util.*;


public class CopyButton extends JButton 
implements Command {
    Mediator med;            //copy of the Mediator
    public CopyButton(ActionListener fr, 
                      Mediator md) {
        super("Copy");         //create the button
        addActionListener(fr); //add its listener
        med = md;              //copy in the Mediator instance
        med.registerCopy(this); //register with the Mediator   
    }
    public void Execute() {                         //execute the copy
        med.Move();
    }
}

⌨️ 快捷键说明

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