首页>代码>java Swing编写扫雷游戏>/cleanMine/src/cleanMine/MineButton.java
package cleanMine;

import javax.swing.JButton;
import java.awt.*;

public class MineButton extends JButton {
	private int row;
	private int col;
	private boolean cleared=false;
	private int countOfSurroundMines;//周围地雷数,如果本按钮是雷,则为-1;
	
	public MineButton(int row,int col){
		this.row=row;
		this.col=col;
		this.setMargin(new Insets(0,0,0,0));
	}

	public int getCol() {
		return col;
	}

	public int getRow() {
		return row;
	}

	public boolean isCleared() {
		return cleared;
	}

	public void setCleared(boolean cleared) {
		this.cleared = cleared;
	}

	public int getCountOfSurroundMines() {
		return countOfSurroundMines;
	}

	public void setCountOfSurroundMines(int countOfSurroundMines) {
		this.countOfSurroundMines = countOfSurroundMines;
	}
	
	
}
最近下载更多
刘地带  LV11 5月26日
luo110012  LV9 5月16日
18973881965  LV1 2月23日
微信网友_6194851142488064  LV1 2022年10月28日
zhkai163  LV5 2022年10月27日
rodert  LV14 2022年8月6日
java代写  LV7 2022年6月4日
liangge2115  LV26 2022年5月30日
flygrass  LV12 2022年4月8日
四季夏目  LV6 2022年3月19日
最近浏览更多
刘地带  LV11 5月26日
luo110012  LV9 5月16日
1739332236  LV1 2月23日
wwfl02  LV2 2022年12月16日
wdasfgas 2022年11月27日
暂无贡献等级
微信网友_6195329201262592  LV1 2022年10月28日
微信网友_6194851142488064  LV1 2022年10月28日
zhkai163  LV5 2022年10月27日
微信网友_6193867173089280 2022年10月27日
暂无贡献等级
微信网友_6190641661054976  LV2 2022年10月26日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友