driver.java
来自「Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套」· Java 代码 · 共 34 行
JAVA
34 行
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 + =
减小字号Ctrl + -
显示快捷键?