📄 driver.java
字号:
import java.awt.*;/** Shuffle TetxFields Program (Figure 6.34) * Author: David Riley */public class Driver extends ThreeButtons { private ShuffleFields fields; /** post: A window is displays three TextFields and directions. */ public Driver() { ThreeButtonFrame theWin; theWin = new ThreeButtonFrame("Text Shuffler"); theWin.setLayout(null); fields = new ShuffleFields(theWin); theWin.repaint(); } /** post: the field content has been rotated upward */ public void leftAction() { fields.rotateUp(); } /** post: The top and bottom fields have a copy of the content of the * middle field @pre */ public void midAction() { fields.copyMiddle(); } /** post: the field content has been rotated downward */ public void rightAction() { fields.rotateDown(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -