controlwindow.ctxt
来自「Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套」· CTXT 代码 · 共 13 行
CTXT
13 行
#BlueJ class contextcomment0.target=class\ ControlWindowcomment1.target=theRobotcomment2.target=turnBtncomment3.params=rcomment3.target=ControlWindow(Robot)comment3.text=post\:\ \ \ this\ window\ is\ created\nand\ getX()\ \=\=\ 13*72+10\ \ and\ getY()\=\=20\nand\ getWidth()\ \=\=\ 200\ \ and\ \ getHeight()\ \=\=\ 120\nand\ theRobot\ \=\=\ r\ \ \nand\ turnBtn\ is\ created\ and\ placed\ on\ this\nand\ moveBtn\ is\ created\ and\ placed\ on\ this\ \n\ncomment4.params=ecomment4.target=void\ actionPerformed(ActionEvent)comment4.text=This\ is\ an\ event\ hanlder\ for\ both\ buttons.\npost\:\ \ \ e.getSource()\=\=turnBtn\ implies\ postcondition\ of\ theRobot.rotateClockwise()\nand\ \ e.getCourse\=\=moveBtn\ implies\ postcondition\ of\ theRobot.moveByOneStep()\ \n\ncomment5.target=moveBtnnumComments=6
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?