⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jminebutton.java

📁 手机游戏 手机游戏 手机游戏 手机游戏 手机游戏
💻 JAVA
字号:
/**
 * This program is written by Jerry Shen(Shen Ji Feng)
 * use the technology of SWING GUI and the OO design
 *
 * @author Jerry Shen(jerry.shen@cognizant.com)
 * Distributed under the licience of GPLv3
 * all rights reserved.
 */ 
import javax.swing.*;

public class JMineButton extends JButton {
	private int col;
	private int row;
	private int flag=0;
	private boolean clickFlag = false;
	JMineButton(int row, int col, ImageIcon icon) {
		super(icon);
		this.row = row;
        	this.col = col;
	}
	public boolean getClickFlag () {
		return(clickFlag);
	}
	public void setClickFlag(boolean toSet) {
		clickFlag = toSet;
	}
	public int getCol() {
		return(col);
	}
	public int getRow(){
		return(row);
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public int getFlag() {
		return(flag);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -