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

📄 jminebutton.java

📁 开源Java扫雷游戏JMine2.0Jar新版功能完善
💻 JAVA
字号:
/**
 * This program is written by Jerry Shen(Shen Ji Feng) use the technology of
 * SWING GUI and the OO design
 * 
 * @author Jerry Shen all rights reserved.
 * Email:jerry.shen@cognizant.com; jerry_shen_sjf@yahoo.com.cn
 * Please report bug to these emails.
 * Open source under GPLv3
 * 
 * version 2.0
 */
import javax.swing.ImageIcon;
import javax.swing.JButton;

@SuppressWarnings("serial")
public class JMineButton extends JButton {
	/**
	 * 
	 */
	private int col;
	private int row;
	private int flag = 0;
	private boolean clickFlag = false;

	JMineButton(int col, int row, ImageIcon icon) {
		super(icon);		
		this.col = col;
		this.row = row;
	}

	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 + -