首页>代码>java swing编写坦克大战源码>/坦克大战/src/wyf/cgq/PaintThread.java
package wyf.cgq;
import java.io.*;
import java.net.*;
import java.util.*;
public class PaintThread extends Thread{//服务器端的绘制方法
	TankServer father;
	boolean flag=true;
	public PaintThread(TankServer father){//构造器
		this.father=father;
	}
	public void run(){//重写的run方法
		while(flag){
			try{
				sleep(100);
			}
			catch(Exception e){e.printStackTrace();}
			father.repaint();//每隔一段时间绘制一次
		}
	}
}
最近下载更多
12345685  LV2 1月7日
陈小灏  LV14 2023年7月1日
哇撒是大帅耶  LV3 2022年12月17日
干翻元宇宙  LV1 2022年11月8日
WEIdong123  LV2 2022年10月26日
胡胡霜  LV2 2022年5月29日
xiaoqing12350  LV4 2022年5月21日
你想  LV1 2021年6月25日
射手湖心  LV1 2021年5月26日
5408517  LV1 2021年5月23日
最近浏览更多
dengge123  LV13 1月5日
12345685  LV2 1月2日
法拉利  LV1 2023年12月12日
woldxy  LV12 2023年9月28日
wangjialiang1  LV17 2023年8月23日
wgsidnb  LV1 2023年6月11日
gzryue  LV6 2023年4月23日
3043864991  LV2 2023年1月5日
哇撒是大帅耶  LV3 2022年12月17日
80730176  LV7 2022年12月6日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友