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

📄 driver.java

📁 Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套 代码
💻 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 + -