全文预览

沈阳理工Hannoi塔java课程设计

上传者:学习一点 |  格式:doc  |  页数:24 |  大小:0KB

文档介绍
ed(MouseEvent):voidmouseDragged(MouseEvent):voidmouseReleased(MouseEvent):voidHandleMouse:HandleMouseActionListenerTowerautoMoveDisc:AutoMoveDiscamountOfDisc:intpointA,pointB,pointC:TowerPoint[]towerName:char[]con:ContainermoveStep:StringBufferAutoMoveDisc(Containercon):无类型setPointA(TowerPoint[]):voidsetPointB(TowerPoint[]):voidsetPointC(TowerPoint[]):voidactionPerformed(ActionEvent):voidsetTowerName(char[]):voidsetAmountOfDisc(int):voidsetMoveStep(int,char,char,char):voidautoMoveDisc(char,char):voidAutoMoveDiscShowStep:JTextAreabStart,bStop,bContinue,bClose:JButtontime:Timer沈阳理工大学java课程设计665运行5.1运行方案将前面6个Java源文件:HannoiWindow.java、Tower.java、TowerPoint.java、Disc.java、HandleMouse.java和AutoMoveDisc.java保存同一目录中。分别编译这6个Java源文件,或运行“javac*.java”命令,编译全部源文件,然后运行主类,即运行HannoiWindow类。5.2运行结果图5.1程序截图1

收藏

分享

举报
下载此文档