• 大小: 29KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: Java
  • 标签:

资源简介

围棋代码java java围棋代码 java围棋代码

资源截图

代码片段和文件信息

package sample;

import java.awt.*;
import java.awt.event.*;
import java.applet.*;

import javax.swing.Jframe;

//import sunw.util.EventListener;

public class Chess extends Jframe {
Chessboard qipan = new Chessboard();;

//  初始化外观
public Chess() {

this.settitle(“围棋程序“);
this.setLayout(new BorderLayout());
this.setSize(qipan.getSize());
this.add(qipan “Center“);
this.setResizable(false);
this.setLayout(new BorderLayout());
this.setSize(550 490);
this.setVisible(true);
}

//  得到宽数值
public int getWidth() {
return qipan.getWidth();
}

public int getHeight() {
return qipan.getHeight();
}

public static void main(String[] args) {
//开始下棋程序
Chess Igo = new Chess();

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        383  2011-05-24 21:59  chapter\.project

     文件      11818  2011-05-24 22:00  chapter\src\sample\Chessboard.java

     文件        344  2011-05-24 22:00  chapter\src\sample\Chesspoint.java

     文件      12553  2011-05-24 22:00  chapter\src\sample\Qipan.java

     文件        771  2011-05-24 22:02  chapter\src\sample\Chess.java

     文件       1163  2011-05-24 22:02  chapter\bin\sample\Chess.class

     文件       1614  2011-05-24 22:00  chapter\bin\sample\Chessboard$ControlPanel$ChessAction.class

     文件       3381  2011-05-24 22:00  chapter\bin\sample\Chessboard$ControlPanel.class

     文件       1214  2011-05-24 22:00  chapter\bin\sample\Chessboard$ControlPanel$BackChess.class

     文件       2487  2011-05-24 22:00  chapter\bin\sample\Chessboard$PutChess.class

     文件       8132  2011-05-24 22:00  chapter\bin\sample\Chessboard.class

     文件       1337  2011-05-24 22:00  chapter\bin\sample\Chessboard$MML.class

     文件        991  2011-05-24 22:00  chapter\bin\sample\Chesspoint.class

     文件       2232  2011-05-24 22:00  chapter\bin\sample\Qipan$ML.class

     文件       1410  2011-05-24 22:00  chapter\bin\sample\Qipan$ControlPanel$IL.class

     文件       1119  2011-05-24 22:00  chapter\bin\sample\Qipan$ControlPanel$AL.class

     文件       1212  2011-05-24 22:00  chapter\bin\sample\Qipan$MML.class

     文件       6802  2011-05-24 22:00  chapter\bin\sample\Qipan.class

     文件       3225  2011-05-24 22:00  chapter\bin\sample\Qipan$ControlPanel.class

     文件        629  2011-05-24 21:59  chapter\.settings\org.eclipse.jdt.core.prefs

     文件        301  2011-05-24 21:59  chapter\.classpath

     目录          0  2011-05-24 21:59  chapter\src\sample

     目录          0  2011-05-24 21:59  chapter\bin\sample

     目录          0  2011-05-24 21:59  chapter\src

     目录          0  2011-05-24 21:59  chapter\bin

     目录          0  2011-05-24 21:59  chapter\.settings

     目录          0  2011-05-24 21:59  chapter

----------- ---------  ---------- -----  ----

                63118                    27



............此处省略0个文件信息

评论

共有 条评论

相关资源