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