下载此文档

java扫雷源代码.doc


文档分类:IT计算机 | 页数:约10页 举报非法文档有奖
1/10
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/10 下载此文档
文档列表 文档介绍
.;
import ;
import .*;
import .*;
import .*;
public class Bomb extends JButton {
 
 public int num_x,num_y;       //第几号方块
 public int BombRoundCount;    //周围雷数
 public boolean isBomb;        //是否为雷
 public boolean isClicked;     //是否被点击
 public int BombFlag;          //探雷标记
 public boolean isRight;       //是否点击右键
 
 public Bomb(int x,int y)
  {
   BombFlag = 0;
   num_x = x;
   num_y = y;
   BombRoundCount = 0;
   isBomb = false;
   isClicked = false;
   isRight = false;
  }
}
 
 
.;
import ;
import ;
import .*;
import .*;
import .*;
public class MainBomb extends JFrame implements ActionListener,MouseListener{
 
 public JTextField text;
  public Label nowBomb,setBomb;
  public int BlockNum,BombNum;                                                //当前方块数当前雷数
  public Icon icon_bomb = new ImageIcon("");                          //踩雷
  public Icon icon_bomb_big = new ImageIcon("");                  //踩雷标记
  public Icon icon_flag = new ImageIcon("");                          //雷标记
  public Icon icon_question = new ImageIcon("");                  //疑惑是否有雷
  public JButton start = new JButton(" 开始");
  public Panel MenuPamel = new Panel();
  public P

java扫雷源代码 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数10
  • 收藏数0 收藏
  • 顶次数0
  • 上传人mh900965
  • 文件大小57 KB
  • 时间2017-12-14