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; } }
![](https://static.zuidaima.com/resource/img/heart_ico.png)
sunxiaoyan LV1
6月19日
张德志 LV9
2023年12月27日
刘地带 LV11
2023年5月26日
luo110012 LV9
2023年5月16日
18973881965 LV1
2023年2月23日
微信网友_6194851142488064 LV1
2022年10月28日
zhkai163 LV5
2022年10月27日
rodert LV14
2022年8月6日
java代写 LV7
2022年6月4日
liangge2115 LV27
2022年5月30日
![](https://static.zuidaima.com/resource/img/cattle_ico.png)
17360557751
7月20日
暂无贡献等级
azzzz1 LV2
6月26日
sunxiaoyan LV1
6月19日
张德志 LV9
2023年12月27日
lshlsh
2023年12月25日
暂无贡献等级
COD824 LV1
2023年11月29日
koichenchen LV1
2023年11月3日
吉萨VUK
2023年11月1日
暂无贡献等级
矿泉水 LV30
2023年8月11日
hougui LV1
2023年6月20日