• 大小: 0.31M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 标签: 象棋  

资源简介


资源截图

代码片段和文件信息

package wyf.cgq;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import java.io.*;
import java.net.*;
public class ClientAgentThread extends Thread
{
XiangQi father;//声明XiangQi的引用
boolean flag=true;//控制线程的标志位
DataInputStream din;//声明数据输入输出流的引用 
DataOutputStream dout;
String tiaoZhanZhe=null;//用于记录正在挑战的对手
public ClientAgentThread(XiangQi father)
{
this.father=father;
try
{
din=new DataInputStream(father.sc.getInputStream());//创建数据输入输出流
dout=new DataOutputStream(father.sc.getOutputStream());

String name=father.jtfNickName.getText().trim();//获得昵称
dout.writeUTF(“<#NICK_NAME#>“+name);//发送昵称到服务器
}
catch(Exception e)
{
e.printStackTrace();
}
}
public void run(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-06-28 22:03  张琪琪53\
     目录           0  2017-06-26 22:18  张琪琪53\build\
     文件          73  2008-09-13 11:24  张琪琪53\build\Client.bat
     文件        1045  2008-07-18 10:30  张琪琪53\build\ico.gif
     文件          72  2008-09-13 11:23  张琪琪53\build\Server.bat
     文件        2560  2017-06-26 22:16  张琪琪53\build\Thumbs.db
     目录           0  2017-06-11 14:07  张琪琪53\build\wyf\
     目录           0  2017-06-11 14:07  张琪琪53\build\wyf\cgq\
     文件        5681  2008-08-19 19:23  张琪琪53\build\wyf\cgq\ClientAgentThread.class
     文件        3416  2008-08-19 11:10  张琪琪53\build\wyf\cgq\GuiZe.class
     文件        9128  2008-08-19 19:22  张琪琪53\build\wyf\cgq\QiPan.class
     文件        1179  2008-08-17 08:21  张琪琪53\build\wyf\cgq\QiZi.class
     文件        1393  2008-08-17 02:59  张琪琪53\build\wyf\cgq\Server$1.class
     文件        4961  2008-08-17 02:59  张琪琪53\build\wyf\cgq\Server.class
     文件        4711  2008-09-09 21:59  张琪琪53\build\wyf\cgq\ServerAgentThread.class
     文件         791  2008-08-19 09:04  张琪琪53\build\wyf\cgq\ServerThread.class
     文件        1260  2008-08-19 19:23  张琪琪53\build\wyf\cgq\XiangQi$1.class
     文件        8904  2008-08-19 19:23  张琪琪53\build\wyf\cgq\XiangQi.class
     文件      447720  2017-06-28 22:24  张琪琪53\java象棋课程设计.doc
     目录           0  2017-06-26 22:19  张琪琪53\res\
     文件        1045  2008-07-18 10:30  张琪琪53\res\ico.gif
     文件        2560  2017-06-26 10:07  张琪琪53\res\Thumbs.db
     目录           0  2017-06-11 14:07  张琪琪53\src\
     目录           0  2017-06-11 14:07  张琪琪53\src\wyf\
     目录           0  2017-06-11 14:07  张琪琪53\src\wyf\cgq\
     文件        9699  2008-08-19 19:21  张琪琪53\src\wyf\cgq\ClientAgentThread.java
     文件        8181  2008-08-19 14:36  张琪琪53\src\wyf\cgq\GuiZe.java
     文件       13929  2017-06-28 21:54  张琪琪53\src\wyf\cgq\QiPan.java
     文件        1250  2008-08-17 08:21  张琪琪53\src\wyf\cgq\QiZi.java
     文件        5953  2008-08-17 08:21  张琪琪53\src\wyf\cgq\Server.java
     文件        7314  2008-09-09 21:59  张琪琪53\src\wyf\cgq\ServerAgentThread.java
............此处省略2个文件信息

评论

共有 条评论