📄 jminebutton.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 + -