📄 movebutton.java
字号:
import java.awt.event.*;
import com.sun.java.swing.*;
import com.sun.java.swing.event.*;
import com.sun.java.swing.text.*;
import com.sun.java.swing.border.*;
import com.sun.java.accessibility.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class MoveButton extends JButton implements Command
{
Mediator med; //copy of the Mediator
public MoveButton(ActionListener fr, Mediator md)
{
super("Copy"); //create the button
addActionListener(fr); //add its listener
med = md; //copy in the Mediator instance
med.registerMove(this); //register with the Mediator
}
public void Execute()
{ //execute the copy
med.Move();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -