• 大小: 296KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: Java
  • 标签:

资源简介

java编写的五子棋局域网版java编写的五子棋局域网版java编写的五子棋局域网版

资源截图

代码片段和文件信息

import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class ChessMan extends JLabel{
   private int x;
   private int y;
   private ImageIcon imgBlack = new ImageIcon(“Res//Black.gif“);
   private ImageIcon imgWhite = new ImageIcon(“Res//White.gif“);
   private ImageIcon[] imgs = new ImageIcon[]{imgBlackimgWhite};
  
   public ChessMan(int _x int _y int chess){
   this.x = _x;
   this.y = _y;
   this.setIcon(imgs[chess]);    
   }
   
   public int X(){
   return this.x;
   }
   
   public int Y(){
   return this.y;
   } 
}

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

     文件        232  2007-11-24 21:34  FiveChess\.classpath

     文件        385  2007-11-24 21:34  FiveChess\.project

     文件        869  2007-11-26 10:23  FiveChess\bin\ChessMan.class

     文件       1549  2007-11-26 11:26  FiveChess\bin\ChessPanel$1.class

     文件        882  2007-11-26 11:26  FiveChess\bin\ChessPanel$2.class

     文件       4739  2007-11-26 11:26  FiveChess\bin\ChessPanel.class

     文件        915  2007-11-26 12:13  FiveChess\bin\ChessServer$RecieveThread.class

     文件       6647  2007-11-26 12:13  FiveChess\bin\ChessServer.class

     文件       3066  2007-11-26 11:34  FiveChess\bin\ConnectDialog.class

     文件        606  2007-11-26 11:34  FiveChess\bin\ConnectionListener.class

     文件        645  2007-11-26 10:23  FiveChess\bin\FiveChess$1.class

     文件        756  2007-11-26 10:23  FiveChess\bin\FiveChess$2.class

     文件        765  2007-11-26 10:23  FiveChess\bin\FiveChess$3.class

     文件        938  2007-11-26 10:23  FiveChess\bin\FiveChess$4.class

     文件       2632  2007-11-26 10:23  FiveChess\bin\FiveChess.class

     文件       2696  2007-11-26 10:23  FiveChess\bin\PortSettingDialog.class

     文件        624  2007-11-26 10:23  FiveChess\bin\PortSettingListener.class

     文件        703  2007-11-24 21:11  FiveChess\bin\Res\Black.gif

     文件       1413  2007-11-24 20:52  FiveChess\bin\Res\BlackBox.gif

     文件      22977  2007-11-25 11:20  FiveChess\bin\Res\Chat.jpg

     文件         61  2007-11-24 20:51  FiveChess\bin\Res\Clicked.gif

     文件      31709  2007-11-24 20:39  FiveChess\bin\Res\FiveChessBoard.jpg

     文件       5130  2007-11-25 10:58  FiveChess\bin\Res\Player.jpg

     文件        104  2007-11-25 04:23  FiveChess\bin\Res\Selected.gif

     文件      12198  2007-11-24 21:26  FiveChess\bin\Res\Top.gif

     文件      71365  2007-11-24 21:26  FiveChess\bin\Res\Top.png

     文件        595  2007-11-24 21:10  FiveChess\bin\Res\White.gif

     文件       1466  2007-11-24 20:47  FiveChess\bin\Res\WhiteBox.gif

     文件         22  2009-01-01 22:03  FiveChess\bin\五子棋.bat

     文件        703  2007-11-24 21:11  FiveChess\Res\Black.gif

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

评论

共有 条评论

相关资源